[parenscript-devel] Syntax error generated by CASE

Scott Bell scott at skysheet.com
Thu Dec 8 18:42:29 UTC 2011


When a CASE expression is in the return position of a function and it
contains an empty clause that is not the last clause, a syntax error is
produced:

(lambda () (case x (:foo) (:bar)))
  =>
function () {
    switch (x) {
    case 'foo':
        return break;
    case 'bar':
        return null;
    };
};
  =>
SyntaxError: Unexpected token break

    Scott




More information about the parenscript-devel mailing list