DMD 2.100, bring ont he attribute soup

Walter Bright newshound2 at digitalmars.com
Fri May 27 02:48:18 UTC 2022


On 5/26/2022 5:34 PM, Paul Backus wrote:
> Is it any wonder that a lot of D programmers look at the two lists above and 
> conclude, "this newfangled DIP 1000 stuff just ain't worth it"?

Fortunately,

1. the attributes are all subtractive, i.e. they all restrict what the 
programmer can do when they are there. This is deliberate. If you don't want the 
restrictions, don't use them.

2. the attributes are inferred in templates. This helps a great deal. They'll 
probably get inferred for general functions at some point, it's just too useful 
to infer them.

3. D code defaults to @system. If you just want to blitz out code, write it that 
way. If you want the compiler to check for memory safety errors, well, ya gotta 
use the memory safe features.




More information about the Digitalmars-d mailing list