Discussion Thread: DIP 1028--Make @safe the Default--Final Review
rikki cattermole
rikki at cattermole.co.nz
Wed Mar 25 14:04:42 UTC 2020
I have an alternative to @safe by default that may be a better option
for the near future.
Given a headconst tied to life time (similar to a borrowed pointer) we
can then change the default of that function to be @safe.
This can be slowly expanded to include raw pointers declarations that
are never assigned to as well.
It doesn't get us 100% of the way there, but it does allow those who
care about memory safety about 80% of the way there and gives us more
time to adapt code.
Thoughts welcome.
More information about the Digitalmars-d
mailing list