Why is D unpopular?
Adam D Ruppe
destructionator at gmail.com
Tue May 24 12:19:56 UTC 2022
On Tuesday, 24 May 2022 at 12:10:36 UTC, Siarhei Siamashka wrote:
> One of the valid criticisms of D language is that it is not
> @safe by default.
I don't care about @safe. I'm talking real world safety, things
like automatic bounds checks.
> Right now the '-release' option disables bounds checking in
> @system code and this is a **necessary** escape hatch to keep D
> language competitive with C++ and the other system programming
> languages.
False. You can put `.ptr` in strategic places to disable it
locally instead of bludgeoning it with a superglobal switch.
Even if you want to disable it globally (and you don't, unless
you're too incompetent to be allowed to release anything to the
public), there's the -boundscheck=off switch for that. Bundling
it with a bunch of other things and hiding it behind a
harmless-sounding "-release" thing is criminally negligent in a
sane world.
More information about the Digitalmars-d
mailing list