Re:Hidden treasure in the D standard library
by tonysuper on Thursday August 28, 2014 @05:02PM
(#8239680)
The "flag" example could be easily replaced with named parameters. Seems a bit unnecisary to add a new type for that purpose, unless I'm missing something.
[ Parent
| on HN ]
Re:Hidden treasure in the D standard library
by asterite on Thursday August 28, 2014 @05:36PM
(#8239845)
You are not missing anything: named parameters would have been a much nicer choice, but I think they don't want to make the language more complex.
Re:Hidden treasure in the D standard library
by EvenThisAcronym on Thursday August 28, 2014 @07:29PM
(#8240308)
Are there any plans to add named arguments a la C# or Python in the future?