DIP 1019--Named Arguments Lite--Community Review Round 1

Olivier FAURE couteaubleu at gmail.com
Mon Mar 4 18:57:16 UTC 2019


On Sunday, 3 March 2019 at 15:07:04 UTC, Joseph Rushton Wakeling 
wrote:
> Well, since the current DIP is entirely opt-in from the 
> function author side anyway, it's a bit of a moot point. I was 
> responding rather to someone who was arguing that it should 
> _not_ be opt in for function authors.

My point was, the DIP should be opt-out, because even then 
library maintainers can always change argument names if they want 
to, without breaking code. And even if code does break, it's an 
extremely easy fix (as in, "change a few names until it 
compiles", not "refactor everything").

Like, okay, I get that some people are opposed to the very idea 
of parameter names being important information to keep track of, 
but pragmatically, the costs of making named arguments the 
default are far outweighed by the benefits.


More information about the Digitalmars-d mailing list