Does D have too many features?
Jonathan M Davis
jmdavisProg at gmx.com
Sat Apr 28 15:58:54 PDT 2012
On Saturday, April 28, 2012 22:00:52 bearophile wrote:
> 2) I'd like to disallow (or fix!) default arguments of out and
> ref arguments (http://d.puremagic.com/issues/show_bug.cgi?id=5850
> ).
If the changes to ref and const ref that were discussed during the beta are
fully fleshed out and implemented, then it'll be perfectly legal to pass a
temporary value to a ref in many cases (if not in general), in which case
having them take a default argument wouldn't be a problem at all. But as long
as ref can't take temporaries, having it take a default argument makes no
sense at all.
> 3) Automatic joining of adjacent strings (a bug-prone
> anti-feature: ["red" "green", "blue"]).
Agreed.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list