I don't think there's a way to make aliases for reader literals, which you
would want in order to avoid breaking this rule:
"Reader tags without namespace qualifiers are reserved for Clojure."
from http://clojure.org/reader#The Reader--Tagged Literals

But I haven't tried it myself, is that the case?

Seems like you could possibly bind *data-readers* for only the duration of
the evaluation of that code, that might be a dirty workaround.  You could
put those templates in special files that are read this way.


On Sat, Jun 22, 2013 at 2:14 PM, Joel Holdbrooks <cjholdbro...@gmail.com>wrote:

> Tagged literals are really neat. The other day I discovered what seems to
> be a fairly good use case for them (see discussion 
> here<https://github.com/noprompt/garden/issues/5#issuecomment-19849334>).
> At the time I wasn't sure if data_readers.clj could be packaged with a
> Clojar but it appears it can.
>
> While part of me finds this attractive, I wonder, is this a good idea?
>
> --
> --
> 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.
>
>
>

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


Reply via email to