You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which works in exactly the same way. I think mutant should not modify the name of the variable if it is not referenced anywhere else (maybe also looking for var ||= value).
The text was updated successfully, but these errors were encountered:
I always wanted not to mutate ivars on the lhs of an or op assgn like this. But the "Variables only refernced once" is also a nice idea to overcome this. I'll look into this idea. Thx.
BTW: I typically dislike and avoid all ||= usages on ivars since this leads to thread safety problems. This is the reason this issue was not pressuring enough for me to get a rid of.
If I have the following implementation:
Mutant changes it to:
Which works in exactly the same way. I think mutant should not modify the name of the variable if it is not referenced anywhere else (maybe also looking for
var ||= value
).The text was updated successfully, but these errors were encountered: