Really, I don’t mind - I would just like consistency :-) One argument for the right delimiter of some sort is that it is unambiguous and therefore nobody can misinterpret it. If you were unfamiliar with a validation library and it reported <start>[:a :b :c must be “2”]</start> you _could_ interpret that as either the literal 2 or a string containing 2. To interpret it correctly you must know more than just the literal text, therefore it isn’t a great choice.
I like _ because <start>[:a :b :c must be _”2”_]</start> is less open to misinterpretation because the _ symbol is not part of the Clojure grammar (unlike brackets and quotes). It is also idiomatic to use as a symbol to mean “I don’t care about the value of this” which has some symmetry (albeit at a stretch) in the use I am proposing here. > On 13 Nov 2015, at 13:19, Atamert Ölçgen <mu...@muhuk.com> wrote: > > Hi Colin, > > Why not just "2"? > > On Fri, Nov 13, 2015 at 1:55 PM, Colin Yates <colin.ya...@gmail.com > <mailto:colin.ya...@gmail.com>> wrote: > Hi all, > > Can we, the community agree a consistent way of rendering Clojure EDN when we > report it in info or error. For example, given the EDN "2" (i.e. a string > containing a single character 2) I have seen various libraries render it as: > > - 2 > - "2" > - ["2"] > - [2] > - (2) > - '"2"' > > I would like to propose that we standardise around "_" as the boundary > character as that isn't likely to be used in (except for some markup I guess > but that is pretty unlikely), so a test framework might render as such: > > - expected _2_ but was _"2"_ > > Please? :-) > > -- > 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 > <mailto: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 > <mailto:clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > <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 > <mailto:clojure+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > > -- > Kind Regards, > Atamert Ölçgen > > ◻◼◻ > ◻◻◼ > ◼◼◼ > > www.muhuk.com <http://www.muhuk.com/> > > -- > 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 > <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 > <mailto:clojure+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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/d/optout.