[parenscript-devel] Bug in composed conditional expressions
Vladimir Sedach
vsedach at gmail.com
Wed Apr 29 02:18:11 UTC 2009
Fixed. Thanks for the bug report.
Vladimir
On Fri, Apr 24, 2009 at 11:57 PM, Daniel Gackle <danielgackle at gmail.com> wrote:
> I'm seeing a bug in how conditionals are grouped together.
>
> (ps (return (if (if x y z) a b)))
> => "return x ? y : z ? a : b;"
>
> This requires parentheses in order to evaluate the way the PS expression was
> clearly intended, namely:
>
> (x ? y : z) ? a : b
>
> PS appears to make the wrong decision about when to include parentheses,
> since it does it here when the default would do:
>
> (ps (return (if x y (if z a b))))
> => "return x ? y : (z ? a : b);"
>
> Daniel
>
>
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>
More information about the parenscript-devel
mailing list