On Sun, Mar 17, 2013 at 11:23 PM, Softaddicts <lprefonta...@softaddicts.ca>wrote:
> > I find raw string handling in XML simply ugly :) Agreed. > > Do you have a suggestion on how to represent raw strings ? Something > concrete > we could discuss about ? > > In several languages, they use a sequence of three double-quotes to mark the beginning and the end of the raw string. In Clojure, I think raw strings would actually enhance the power of the edn format rather than detract, specifically the tagged elements. Right now, edn supports things like: #uuid "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"and #inst "1985-04-12T23:20:50.52Z"and you can create your own. The built-ins happen to not utilize double-quotes or backslashes, so escaping is not a big deal, but if you want your tagged element to use a syntax where quotes and backslashes are natural, you're out of luck and you get a big ugly mess. Think how much uglier the above inst element would look if - and : happened to be characters that required escaping. All I want is the ability to do something like *#my/tag """45 \ "a" \ 50"""* if that's the most natural way to express the element rather than having to type *#my/tag "45 \\ \"a\" \\ 50"* which is already starting to look ugly, and looks far uglier the more characters are in there that require escaping. -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.