Private default function arguments
bearophile
bearophileHUGS at lycos.com
Fri Jan 15 04:36:32 PST 2010
retard:
> Beats?
Yes, in my opinion it's better than the alternatives. In the end here what I will use in normal code is the basic strategy of using just comments.
>Documentation tools need to be aware of this.
D uses ddoc, as basic solution for this.
>Requires compiler patch.
As any solution that changes the language, yes.
> You need to educate this to new users etc.
I think it's not hard to understand and remember.
>Did I already mention it increases the complexity of a language that is already fighting featuritis.<
But it also simplifies code, makes it a bit safer, avoiding some possible bugs both of the original problem and created by the alternative solutions.
In the end I think this feature it's not worth it because it's a solution to a very specific problem (but this is also true for few other features of D2 that I think can be removed).
Bye,
bearophile
More information about the Digitalmars-d
mailing list