Repository navigation
Warn on capture of mutable variables by escaping lambdas #490
Replies: 3 comments 3 replies
|
Personally, I don't even think |
Given that the main "fix" when such a warning is encountered will be to mark the function as I would find inconvenient to migrate lots of code to |
|
Personally, I don't find the showcased behavior strange, as they match the consequences of capturing mutability. All the use-cases for that I have come across are already covered by the "specific rules", so this warning will not negatively impact me. |
Uh oh!
There was an error while loading. Please reload this page.
This is a discussion of the design proposal for warning on the capture of mutable variables by escaping lambdas. The current full text of the proposal is available here.
We are sharing it to collect feedback on the diagnostic rules, migration strategy, and related concerns.
All reactions