> True, and it is why newLISP uses two delimiters for this purpose, {}
> and [text][/text]. The latter might not work well in clojure though
> because of its use of arrays.

Reader macros have full access to the text stream, so it would be  
straightforward to define a Perlish heredoc syntax for big literals,  
e.g.

#_SOMETEXT
foo bar
...

SOMETEXT

I don't really see much point in this proposal as a whole, though --  
almost every syntax will require escaping *something*, whether it be  
quotes or curly braces -- so don't view this as me championing anything.

I certainly consider triple-quotes to be nicer than #s{}, which is  
(IMO) visually repellent.

The reader macro approach has no significant advantage over triple  
quotes, because either way involves a change to Clojure's Java code.  
Indeed, it might be impossible to escape } within the reader macro  
version, which defeats the point.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to