-preview=safer for D

Paul Backus snarwin at gmail.com
Sun Dec 15 13:41:39 UTC 2024


On Sunday, 15 December 2024 at 03:11:10 UTC, Walter Bright wrote:
> On 12/14/2024 4:39 PM, Paul Backus wrote:
>> That way, you can get the informational/educational value of 
>> -preview=safer without breaking your build, and you're only 
>> forced to satisfy the checks once you actually decide to 
>> transition to @safe.
>
> Safer is turned on with a switch. You can turn it on, see what 
> you want to address, then turn it off.

Yeah, but then you have to compile your entire project twice. As 
fast as the D compiler is, there are still plenty of projects out 
there that take a non-trivial amount of time to compile.


More information about the Digitalmars-d mailing list