[parenscript-devel] How to generate comments?
vsedach at gmail.com
Sun Aug 22 16:12:17 UTC 2010
That patch is indeed the right way to make a comment special form.
This wasn't around before because no one had asked for it - I think
most users of Parenscript generate JS code for their web applications,
and use the code mainly from Lisp.
Are you making a library? If so, are you looking to document
particular functions, or insert inline comments in arbitrary places?
If it's the functions, then it might make sense for me to add optional
output of function and variable docstrings to JS comments; that would
spare the need for a new special form and syntax for comments.
As for arbitrary JS code, if there is a case where there is some JS
code that you need that cannot be generated by Parenscript, it should
be considered a bug in Parenscript.
2010/8/21 Bastian Müller <bastian at turbolent.com>:
> On 08/20/2010 10:32 PM, Bastian Müller wrote:
>> Sorry if this has been asked already earlier here on the list. I looked
>> into the reference documentation, but couldn't find anything. Is it
> I'm new to parenscript's internals, so maybe that's not the correct way, but
> here's a small patch that allows something like:
> (ps (comment #?"Foo\nbar"))
> ;; =>
> ;; "/* Foo
> ;; bar */;"
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
More information about the parenscript-devel