DIP 1028---Make @safe the Default---Community Review Round 1
ag0aep6g
anonymous at example.com
Thu Jan 2 13:46:46 UTC 2020
On 02.01.20 10:47, Mike Parker wrote:
> This is the feedback thread for the first round of Community Review for
> DIP 1028, "Make @safe the Default":
>
> https://github.com/dlang/DIPs/blob/1b705f8d4faa095d6d9e3a1b81d6cfa6d688554b/DIPs/DIP1028.md
There's this paragraph in the DIP: "This will likely break most code
that has not already been annotated with @safe, @trusted, or @system.
Fortunately, the solution is easy, although tedious: annotate functions
that aren't safe with @trusted or @system."
The last part there can be read as advice to D programmers on how to
adjust their code. I'm afraid it will be interpreted as: "Just slap
@trusted on your unsafe code." Which is terrible advice.
I suggest changing the part after the colon to something like: "annotate
that code with @system."
I.e.:
1) Don't use "safe" without an @ sign. It's too fuzzy a word.
2) Don't recommend @trusted. It's not needed to get the code working again.
More information about the Digitalmars-d
mailing list