I added the following comment to CLJ-927 as a possible solution.  

It would be convenient if I could handle unknown tags using some sort of 
catch-all key in data-readers (say 'default). The associated function should 
take two arguments: the tag and the literal value. If there is no 'default key 
in data-readers, then an error would be thrown (same as Clojure 1.4).

I think it's a simple way to allow the programmer to take control without 
having to add new API or data types. It's just one distinguished key ('default, 
:default something like that) and one additional line of doc.

I have a patch that I'm planning to submit if dev people indicate support for 
it.  The alternative of binding another dynamic var as the unknown tag handler 
would also work for me.

Steve Miner

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