DIP 1030--Named Arguments--Community Review Round 1 Discussion
Timon Gehr
timon.gehr at gmx.ch
Tue Feb 11 08:39:51 UTC 2020
On 09.02.20 03:31, Adam D. Ruppe wrote:
> On Sunday, 9 February 2020 at 02:15:36 UTC, Jon Degenhardt wrote:
>> Or perhaps a way to discourage it, for example, a compile-time warning
>> about no-backward compatibility for parameter names.
>
> I would kinda love user-defined warnings. pragma(msg) comes close
> sometimes but there is no way to conditionally trigger it. (You can sort
> of conditionally disable via `version()` though.)
>
> Of course, you could just name your parameters
> `_randomNameYouReallyDontWantToUse_like_seriously_dont_rely_on_this_name_lol`
> :P
int justDoThis(int,int){
return _param_0+_param_1;
}
More information about the Digitalmars-d
mailing list