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

jmh530 john.michael.hall at gmail.com
Thu Jan 2 16:19:00 UTC 2020

On Thursday, 2 January 2020 at 15:25:15 UTC, bachmeier wrote:
> [snip]
> Just to be clear: my proposal is that you add @legacy at the 
> top of a file and everything in there will be @trusted if it's 
> not marked otherwise. If you want compiler errors, don't do 
> anything and the compiler will tell you which functions are not 
> compatible with @safe. You can then mark them @trusted or 
> @system or mark main as @system if you want. But let's not 
> force that crazy solution on everyone.

Your @legacy is really no different than putting @trusted: at the 
top. I agree with others who are concerned about marking all 
current code as @trusted, rather than @system.

To your other point about it being ugly to mark main as @system, 
I recall Walter considering, at some point, keeping main as 
@system. Perhaps give main more time before changing the default 
to @safe?

More information about the Digitalmars-d mailing list