Memory Safe Programming
H. S. Teoh
hsteoh at qfbox.info
Mon Aug 17 16:26:32 UTC 2026
On Mon, Aug 17, 2026 at 03:45:29PM +0000, Kapendev via Digitalmars-d wrote:
> On Sunday, 16 August 2026 at 09:30:09 UTC, user1234 wrote:
> > On Sunday, 16 August 2026 at 08:50:38 UTC, GB wrote:
> > > It's primarly about memory safety in C, but D gets a mention in
> > > the Appendix I.
> > >
> > > But it raises the question: why isn't @safe not the default in D?
> > >
> > > https://strawberry9.github.io/the-wrong-memory
> >
> > This was proposed as DIP 1028 which was not accepted.
> >
> > - https://forum.dlang.org/thread/raq4fg$1ab4$1@digitalmars.com
> > - https://github.com/dlang/DIPs/blob/master/DIPs/rejected/DIP1028.md
> >
> > TLDR; if my memory serves me right the problem was that such a
> > choice should have been done since day 1. D2 first realease date is
> > early 2010's. DIP 1028 was 10 years after. Too late. Too much
> > breakage in the eco-system.
>
> I am in team safe by default and float/double.init = 0.
Pretty sure someone could convince Adam to make OpenD @safe by default
with not much consequence. ;-)
T
--
Give a man a fish, and he eats once. Teach a man to fish, and he will sit forever.
More information about the Digitalmars-d
mailing list