DIP 1030--Named Arguments--Community Review Round 1 Discussion

Dennis dkorpel at gmail.com
Thu Feb 6 21:58:11 UTC 2020


On Thursday, 6 February 2020 at 21:41:33 UTC, Lim wrote:
> According to current Spec: "If the TemplateArgument is one 
> token long, the parentheses can be omitted", all two examples I 
> showed are legal.

One token, not one argument.
`a:b` and alike are three tokens long.
See https://dlang.org/spec/lex.html#tokens



More information about the Digitalmars-d mailing list