named arguments (C++) - Something D could learn from
bauss
jj_1337 at live.dk
Fri Dec 14 20:13:42 UTC 2018
In C++ you can achieve named arguments using templates and
operator overload:
It's sad that D is still against having named arguments, but it's
possible in something that D thrives to be better than.
https://www.fluentcpp.com/2018/12/14/named-arguments-cpp/
I assume this is not possible to port to D because D doesn't do
operator overload in the same way C++ does, correct?
I still think named arguments should be something to consider
implementing for D, but since everything requires a DIP and it's
very hard to write a DIP that's proper for such a thing then I
guess it'll just be a dream, forever.
More information about the Digitalmars-d
mailing list