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
Short-circuiting rules should be honored during reduction steps #36
This applies to IfThenElse expressions which encompass AndAlso and OrElse
derived patterns.
For example, instead of
> <@ if 3 + 2 = 5 then "hello" + "world" else "goodbye" + "world" @> |>
unquote;;
if 3 + 2 = 5 then "hello" + "world" else "goodbye" + "world"
if 5 = 5 then "helloworld" else "goodbyeworld"
if true then "helloworld" else "goodbyeworld"
"helloworld"
We should have
> <@ if 3 + 2 = 5 then "hello" + "world" else "goodbye" + "world" @> |>
unquote;;
if 3 + 2 = 5 then "hello" + "world" else "goodbye" + "world"
if 5 = 5 then "helloworld" else "goodbye" + "world"
if true then "helloworld" else "goodbye" + "world"
"helloworld"
Original issue reported on code.google.com by stephen....@gmail.com on 30 Jun 2011 at 7:52
Activity