On Aug 13, 5:47 pm, Chas Emerick <cemer...@snowtide.com> wrote:
Sorry about that, I'm not experienced at Clojure, but I should have
> A good thought, but #"foo" is reader syntax for defining a regular
been more clear. The first important part isn't which character
triggers the arbitrary string literal (as you point out, #" is already
taken), but that you get to choose the terminating delimiter such that
it doesn't interfere with your DSL. The second part is that once you
can cleanly express arbitrary string literals, a regular macro can
substitute for a reader macro and avoids the namespace issues.
I use Python's triple quotes too, but you may want to create a DSL
> Double-quoted strings are decent for stuff like this. (Triple-quotes
that can contain both ''' (triple single quote) and """ (triple double
quote) in it. (For instance if you were embedding Python source. :-)
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.