Hi Dave,

The "conflicting" reader issue is fixed in the Clojure 1.5 master branch.

Using data readers in a lib is perfectly acceptable as long as you 
namespace qualify your tags, as the docs mandate: "Reader tags without 
namespace qualifiers are reserved for Clojure". See (doc *data-readers*). 
This allows libs to get along with each other. Clojure will look for all 
"data_readers.clj" files on the classpath.

If I recall correctly, built-in base64 encoding is planned. Don't quote me 
on that, though.

Justin

On Monday, October 15, 2012 7:55:23 AM UTC-4, Dave Sann wrote:
>
> Hi all,
>
> Are there any solid docs/ideas for effective usage of data-readers and 
> data_readers.clj?
>
> Currently, as I understand it data_readers.clj is placed in the root src 
> folder for a project.
>
> This worked nicely, however, I do get an error with lein giving 
> "conflicting readers" if I have data_readers.clj in a jar and then in the 
> same lib in checkouts. Is this expected? Am I doing this wrong?
>
> - is it appropriate to include data_readers.clj in a library - given that 
> file is in the root?
> - is it the intention that a project will define all of its readers and 
> not expect any from library sources? How will I know which ones to use?
> - what is the correct usage of *data-readers*? Is this perhaps preferred?
>
> A thought - There may be lots of readers produced by different people and 
> some kind of order may need to be maintainable to avoid possible "reader 
> hell" of conflicts or possible incompatibilities. 
>
> Readers do not appear to have namespaces so should I prefix my readers if 
> I want to ensure that they are unique?
>
> Is there a list of readers that should be added or considered for addition 
> to a standard set? The one I made was b64 encoding for byte arrays - which 
> would seem like an obvious one.
>
> Thanks for any pointers
>
> Dave
>
>
>

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