Order of evaluation for named arguments

Salih Dincer salihdb at hotmail.com
Sat Mar 29 22:26:21 UTC 2025


Adapting the specification rather than modifying the compiler 
requires less development effort and leaves the current compiler 
implementation (e.g., DMD, LDC, GDC) intact.

On Saturday, 29 March 2025 at 18:38:31 UTC, Steven Schveighoffer 
wrote:
>  or would it be better to change the compiler to enforce this 
> left-to-right evaluation rule?
>

I changed my mind because qhile positional arguments follow a 
left-to-right evaluation rule, switching to parameter order for 
named arguments introduces a duality in the language. This could 
increase the learning curve and require developers to remember 
two distinct rules.

🫠

SDB at 79


More information about the Digitalmars-d mailing list