On 2011-06-11 13:08:48 -0400, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> said:
With named parameters, we'd have something along the lines of:
topNIndex(a, sortOutput : true);
which is nice, but not present in the language (and I can tell after
talking to Walter it won't be anytime soon).
The funny thing is that named arguments are not that difficult to
implement as long as you don't allow reordering. Much easier than
const(Object)ref actually.
<https://github.com/michelf/dmd/commit/673bae4982ff18a3d216bc1578f50d40f4d26d7a>
Took
me less time than what I took arguing about Flag!"".
--
Michel Fortin
michel.for...@michelf.com
http://michelf.com/