-
Notifications
You must be signed in to change notification settings - Fork 136
Deprecate set
Keyword
#2062
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
Deprecate set
Keyword
#2062
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple minor comments on the lint portion, but otherwise quite happy with how this turned out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked at the new lint, phrasing is consistent and should be helpful to folks!
The language samples still stated: > // Mutable variables can be mutated with the `set` keyword Technically this is true, but since `set` is now [deprecated](#2062) I removed it from all the samples. --------- Co-authored-by: Mine Starks <[email protected]>
Makes the
set
keyword optional for assignment expressions. Adds a lint and code action to deprecate the use of theset
keyword. The lint level is set to "Allow".Closes #1496