Allow designated initialization of struct
    IchorDev 
    zxinsworld at gmail.com
       
    Sat Nov  2 18:01:45 UTC 2024
    
    
  
On Friday, 1 November 2024 at 12:26:25 UTC, ryuukk_ wrote:
> This is the thing D does worse than all of the competition that 
> aim to replace C
Nope, not even close. That medal has to go to integer promotion.
```d
short x = 127;
short y = x / 2 + 1; //Error: integer promotion screwed you over 
again!
//ugh take two:
short y = cast(byte)(x / 2 + 1);
```
Heaven forbid you work with `short` or `byte` on a regular basis.
    
    
More information about the dip.ideas
mailing list