+1 for backquotes, as I understand then without needing to think about it
because of markdown. (I use them in docstrings and commit messages and
error messages, too.)
On Nov 13, 2015 10:26 AM, "Steve Miner" <stevemi...@gmail.com> wrote:

> For what it’s worth, I like to use matching `backquotes` as a meta-syntax.
>
> (defn expected [exp was]
>   (format "Expected `%s` but was `%s`" (pr-str exp) (pr-str was)))
>
> (println (expected 2 "2"))
> ;=> Expected `2` but was `"2"`
>
>
>
> > On Nov 13, 2015, at 6:55 AM, Colin Yates <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
> 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.
>

-- 
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.

Reply via email to