Pretty please: Named arguments

bearophile bearophileHUGS at lycos.com
Tue Mar 8 12:58:14 PST 2011


Bruno Medeiros:

> A) Should we give any significant weight to very minute and relatively 
> infrequent code reading situations, like web-based code reviewing in 
> github or whatever, or reading code in books? I doubt so.

Named arguments allow to improve the reading of code everywhere, in editors too.
Reading code in texts, emails, or online, is a common thing for me. I see every day pieces of code in this newsgroup. I suggest you to try to use for few months a language that allows named arguments.


>The question that should be asked is if D should be optimized for IDE usage or not...<

I think modern languages need to be designed to be aware of the existence of IDEs. So far the D design seems to ignore IDEs. On the other hand C# (and other languages) have or have added named arguments even if they are often used in IDEs.

Bye,
bearophile


More information about the Digitalmars-d mailing list