Skip to content

Short-circuiting rules should be honored during reduction steps #36

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions