DIP 1028---Make @safe the Default---Community Review Round 1
Walter Bright
newshound2 at digitalmars.com
Fri Jan 3 11:29:47 UTC 2020
On 1/2/2020 9:06 AM, Guillaume Piolat wrote:
> - Never needed memory-safety, don't see the point, customers are not crying.
> Will not need it in the future.
Buffer overflows (memory unsafety) are consistently at the top of the list of
bugs leading to vulnerable software.
> - I'll just slap @trusted everywhere and call is a day
Arguably better to slap @system everywhere.
> - I don't think D defaults are wrong, they let you write code that is
> as-crappy-as-needed and gets better later.
That was indeed the idea behind unsafety as the default. But the programming
world has changed. We don't have a choice.
> There is a performance difference.
Add @system where you must.
More information about the Digitalmars-d
mailing list