Shouldn't safety be the default.

Siarhei Siamashka siarhei.siamashka at gmail.com
Wed Dec 27 08:22:21 UTC 2023


On Tuesday, 26 December 2023 at 13:18:43 UTC, Hors wrote:
> On Tuesday, 26 December 2023 at 12:39:46 UTC, bachmeier wrote:
>> All that's needed is a compiler switch rather than breaking 
>> everyone's code. Or an easy way to shut it off. Neither of 
>> those were on the table.
>
> Makes sense, instead of a breaking change. We can use another 
> file extension for Safe DLang *.safeD, or [insert your idea 
> here]. That file extension is just D but @safe is default, then 
> it's no longer a breaking change as normal *.d codes still work.

An elephant in the room is the -dip1000 switch. Should or 
shouldn't it be enabled for the new *.safeD files? Here's an 
interesting old topic, where a beginner tried to explore the 
safety offered by D language: 
https://forum.dlang.org/thread/duwrxnkjaafnzpfgnted@forum.dlang.org


More information about the Digitalmars-d mailing list