Comment on Introducing lisp.js: a Lisp for node.jsparentComments−avibryant16yWhy not consider it a reader macro, and translate it to (@ foo bar) or whatever is appropriate, before applying macro expansion?−sedachv16yI considered doing that, but it pretty much means rewriting the reader because it changes the grammar so much. Not that it's not possible, I just don't trust myself not to make it full of bugs.−gruseom16ySeems possible. You'd have to make . be a macro character, which would ruin dotted lists, but Parenscript doesn't have those anyway.
Comments
Why not consider it a reader macro, and translate it to (@ foo bar) or whatever is appropriate, before applying macro expansion?
I considered doing that, but it pretty much means rewriting the reader because it changes the grammar so much. Not that it's not possible, I just don't trust myself not to make it full of bugs.
Seems possible. You'd have to make . be a macro character, which would ruin dotted lists, but Parenscript doesn't have those anyway.