Sounds interesting. Just a quick note: if I recall correctly, the "with" statement is notorious for being slow in JS implementations. Something to watch out for.
On Sat, Feb 27, 2010 at 2:15 PM, Vladimir Sedach vsedach@gmail.com wrote:
I nominate backquote/comma. At least at a 50,000 foot level, it seems
like
the sort of thing PS could do, and it's pretty obvious that it would be useful.
That's a really cool idea.
The only two new features I have on the todo list right now are:
- Use the 'with' statement to introduce proper scoping for closures.
- Generalize the implicit return code transformation to work with
assignment and arguments passed to functions.
These are both ideas borrowed from the scm2js compiler ( http://hop.inria.fr/usr/local/lib/hop/2.0.0/weblets/home/articles/scheme2js/... ).
There are tons of CL features and functions that can be implemented, but my plan is to only add new features by request. My plan for the next release is mainly to refactor the compiler, and split off the print subsystem into the JS-toolkit project (which will also include a JS parser).
Vladimir
Daniel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel