Discussion Thread: DIP 1030--Named Arguments--Final Review
Paul Backus
snarwin at gmail.com
Thu May 14 20:42:02 UTC 2020
On Thursday, 14 May 2020 at 19:55:02 UTC, Steven Schveighoffer
wrote:
> Another convention could be -- if a parameter starts with
> underscore, then the expectation is that you don't use named
> parameters with that argument. Such parameter names should
> always come first, and are subject to the parameter name
> changing without considering it to break code.
>
> If you use _xyz as a named parameter, and the name changes to
> _abc, that's your fault.
+1
For those who want automatic enforcement, maybe a check for this
could be added to D-Scanner?
More information about the Digitalmars-d
mailing list