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
{{ message }}
Repository navigation
if let semantically equivalence to if is wrong w.r.t. scope #47
The equivalence is wrong because the scope of the expression in the predicate has to live as long as the consequent because of the ability to ref in the pattern.
Activity
eddyb commentedon Apr 25, 2017
For the record:
Desugars to:
So
bis in scope, not only forcbut also ford(except for whatamoves out).alercah commentedon Jan 2, 2018
There doesn't seem to be text in the current version which describes this equivalence, unless I'm looking in the wrong place.