If you could make any changes to D, what would they look like?

Menshikov mensikovk817 at gmail.com
Sun Oct 24 21:37:05 UTC 2021


On Wednesday, 20 October 2021 at 09:47:54 UTC, SealabJaster wrote:
> Just for giggles, without pesky things like breaking changes; 
> rational thinking, logical reasoning behind the changes, etc.
>
> What interesting changes would you make to the language, and 
> what could they possibly look like?
> ```
```d
//the type of the function depends on the type of the callback 
parameter
void func(__depend void function() a){
     a();
}

void func1()@nogc{
     func({printf("Hello, World!\n");});
}

void func2(){
     func({writeln("Hello, World!");});
}
```


More information about the Digitalmars-d mailing list