You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#{ Long comments } don't quite work correctly -- they will always terminate prematurely at the first instance of #{ or } after the beginning of the comment -- which means nested comments don't work, nor will commenting out any block of code that includes } ({ ... } is a planned syntax for advanced rhythms, so this is something that could very well happen)
Need to tweak the way I've defined long comments in the grammar... for reference, see how long comments are handled in Instaparse examples.
Another thing to consider: is there a smarter and/or better-looking syntax for long comments than #{ this }? I'm not totally happy with #{ this }, in part because it reminds me of Ruby string interpolation instead of a long comment. For inspiration, this is how other languages handle comment syntax.
The text was updated successfully, but these errors were encountered:
I ended up talking about this with Mark Engelberg himself at ClojureWest today, and he recommended using the greediness regexes as much as possible -- I think making the long comment rule more regex-y might help solve this.
#{ Long comments }
don't quite work correctly -- they will always terminate prematurely at the first instance of#{
or}
after the beginning of the comment -- which means nested comments don't work, nor will commenting out any block of code that includes}
({ ... }
is a planned syntax for advanced rhythms, so this is something that could very well happen)Need to tweak the way I've defined long comments in the grammar... for reference, see how long comments are handled in Instaparse examples.
Another thing to consider: is there a smarter and/or better-looking syntax for long comments than
#{ this }
? I'm not totally happy with#{ this }
, in part because it reminds me of Ruby string interpolation instead of a long comment. For inspiration, this is how other languages handle comment syntax.The text was updated successfully, but these errors were encountered: