If a keeping syntax simple and singular is the goal, the reader macro could use
the proposed #s{ ... } form, while supporting balanced braces in the verbatim
text. The text literal would close when the number of closing braces matches
the number of opening braces. Strings containing unmatched braces still
wouldn't work, but this would eliminate the most obvious use case
counterargument: the inclusion of (well-formed) source code.
#s{...} ; sure!
#s{{...}{{{{}}}} ... } ; just fine!
#s{.{..} ; no can do...
Not nearly as flexible as some other ideas mentioned, but deserving of mention.
- Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---