DIP 1028---Make @safe the Default---Community Review Round 1
newshound2 at digitalmars.com
Sat Jan 4 06:39:16 UTC 2020
On 1/3/2020 7:23 AM, Steven Schveighoffer wrote:
> Some sticky points:
> 1. Currenty the compiler can "give up" on attribute inference, and therefore
> leaves functions as @system. What happens when @safe is the default? I would
> recommend that they should be inferred @safe, but this might be a code-breaking
> in some cases.
They'll be inferred @safe.
> 2. I'll echo here what other have said, because it's REALLY important: do NOT
> recommend slapping @trusted on anything. It's a very very bad idea, and destroys
> the whole concept of @safe. Rather, put @system on functions that have to be
Yeah, that's a good idea.
More information about the Digitalmars-d