D not considered memory safe

bachmeier no at spam.net
Mon Jul 8 13:20:45 UTC 2024


On Monday, 8 July 2024 at 10:30:56 UTC, Nick Treleaven wrote:
> On Monday, 8 July 2024 at 08:48:56 UTC, Martyn wrote:
>> * goes memory-safe by default, will break existing code.
>
> The idea is that the next 
> [edition](https://forum.dlang.org/post/tskwospngntbnqiuxbag@forum.dlang.org) is @safe by default. Existing code will not be broken.

We have very few details on what this will look like for someone 
that doesn't want it. Not breaking existing code is far from 
sufficient for those writing unsafe code. Inference is useless 
because there's nothing to infer, @trusted loses its meaning, 
there's needless boilerplate all over the place, and it's more 
complex for new users of the language. There's no evidence that 
any of this has been given consideration, and all apparently 
because adding -safe to the compilation command is too much of a 
burden for those wanting the additional checks.


More information about the Digitalmars-d mailing list