DIP 1020--Named Parameters--Community Review Round 1

Paul Backus snarwin at gmail.com
Mon Apr 1 14:02:22 UTC 2019


On 4/1/19 6:14 AM, Kagamin wrote:
> On Sunday, 31 March 2019 at 13:11:48 UTC, kinke wrote:
>>> void func(int a, int b, <bool o>);
>>
>> I find the syntax terrible. IMO, any extra syntax in the signature
>> isn't acceptable; it should be call-sites-specific only, i.e., C#-style.
> 
> AFAIK, languages don't have dedicated named parameters.

Scheme [1] and Common Lisp [2] both have dedicated named parameters.
It's uncommon, but not completely unheard-of.

[1] https://srfi.schemers.org/srfi-89/srfi-89.html
[2]
http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/sec_3-4-1-4.html


More information about the Digitalmars-d mailing list