named arguments, string interpolation, please stop.

zjh fqbqrr at 163.com
Fri Jan 12 01:42:42 UTC 2024


On Thursday, 11 January 2024 at 23:12:36 UTC, Timon Gehr wrote:

>
> alias nice=pure @nogc @safe nothrow;
>
> void foo()@nice{}
>
> Then, you need generic parameters, I'll indicate them with `[]`:
>
> ```d
> void opApply[functionAttribute a](scope int delegate()a dg)a{
>     ....
> }
> ```
>


The attribute should be a `set`(making it easier to determine if 
it exists), and every common building block (function, 
enumeration, variable,etc.) can have one, and even all `building 
blocks` can have the same `set name`!

This way, all `desired constructs` can be extracted at compile 
time!



More information about the Digitalmars-d mailing list