-
-
Notifications
You must be signed in to change notification settings - Fork 667
Rename 'safe' global arg to 'vsafe' #6200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Original name was confusing in absence of "transition" context and could lead into thinking it enables @safe checks.
|
-transition=safe does not work without -dip25. I don't understand this reversion, anyway, because nobody uses -dip25. |
|
This flag must not enable any new semantics, only print informational messages when depredations can't be used reliably. If you want to hide safety changes behind new flag, it will have to be a different one. See also http://forum.dlang.org/post/ntvv1d$r9b$1@digitalmars.com Note that PR targets stable branch which doesn't contain any new semantics enabled by this switch now. |
|
-transition=safe does not enable new semantics for -dip25, it enables a superset of them. It does not change -dip25. |
|
@Dicebot point is that any |
|
Correct. Your DIP1000 PR will have to be changed to use
Note that is was all cleaned in stable branch so the change will only make impact on master. |
|
Ping |
|
I don't see the value in the rename. Why is vsafe less confusing? Regardless of the name of the switch, it still needs to enable dip25 internally. It is not designed to work without dip25. |
|
|
It's less confusing b/c it's not related to somehow turning on/off |
But it's not the default now and so now there's an unknown state where -transition=safe is thrown and -dip25 is not. This state was not designed for, there are no test cases for it, and should not exist. |
|
I don't particularly mind the vsafe change, and I would have pulled this but for the -dip25 change. It's another reason why independent changes should be in separate PRs. |
Not in |
Trivial tweak to prevent reviewer confusion like in #6183 (comment)