DIP 1028---Make @safe the Default---Community Review Round 1

berni44 dlang at d-ecke.de
Sun Jan 12 12:28:23 UTC 2020

On Thursday, 2 January 2020 at 09:47:48 UTC, Mike Parker wrote:
> This is the feedback thread for the first round of Community 
> Review for DIP 1028, "Make @safe the Default":

Not sure, if this has allready been mentioned, I didn't read all 
posts, so forgive me my laziness...

With @safe being the default, a typical hello-world-program would 
need @system. I don't like this.

So I thought, why couldn't (as a default) the compiler deduce 
@safe/@system automatically, like he does for templates? One 
still could write @safe if this is important, so the compiler 
will complain, if it isn't @safe.

Or, at least, writeln and co should be @trusted... (IMHO, there 
should be a real good reason, whenever a Phobos function does not 
work in @safe-code...)

More information about the Digitalmars-d mailing list