[Bese-devel] Cond for parenscript

Marijn Haverbeke marijnh at gmail.com
Wed Nov 15 07:45:35 UTC 2006


Hi,

Attached is a patch that adds a 'cond' form to parenscript for generating
proper 'if' / 'else if ' / 'else' javascript forms. It could already be
faked with a trivially simple parenscript macro, but that would output a
nested bunch of ifs in the javascript, which was kind of ugly. This 'cond'
is not integrated as well with 'if' as it could have been (express 'if' in
terms of 'cond') but this is because 'if' has a special case when it is an
expression - it expands into a (condition ? then : else) form. I could have
made cond expand into a nested series of those in that case, but didn't have
time for that.

Marijn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20061115/34c255a9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: js-cond.patch
Type: application/octet-stream
Size: 12202 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20061115/34c255a9/attachment.obj>


More information about the bese-devel mailing list