Thanks.  I'll make sure users know about it.  It's a game engine, so I'll 
mostly be using it for things like Box2D vector literals  (i.e. v#(1,2)), 
and floating-point numbers ( f#(1.4), so they don't have to say  (float 
1.4)).

On Friday, 19 July 2013 13:48:50 UTC-7, Stuart Sierra wrote:
>
> When Clojure starts it will search for files named data_readers.clj at the 
> root the Java classpath. Every library JAR can have its own 
> data_readers.clj and they will all be loaded and merged.
>
> Be careful with this: if there's a conflict in data reader bindings, 
> Clojure won't start. If your library provides a data reader tag that other 
> users may want to override in their applications, don't put it in the 
> data_readers.clj file in your library. On the other hand, if your library 
> uses data readers in its own sources, then it needs to include them in its 
> data_readers.clj file.
>
> -S
>
>
> On Friday, July 19, 2013 4:08:54 PM UTC-4, JvJ wrote:
>>
>> I'm not 100% on how the data_readers.clj file works.  It's just a map 
>> with no namespace that appears to get loaded by some kind of black magic.
>>
>> Is it possible to provide a library which includes its reader macros, so 
>> that the library user's project doesn't need to include their own 
>> data_readers.clj?
>>
>

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