(binding [clojure.tools.reader/*data-readers* *data-readers*] (clojure.tools.reader/read ..)) is probably what you want.
On Tue, May 13, 2014 at 12:17 AM, Sarkis Karayan <skara...@gmail.com> wrote: > Hi everyone, > > I am trying to use clojure.tools.reader to read from a file and also > process datomic #db/id literals, but I am not sure how to pass in the > *data-readers*? > > clojure.tools.reader.edn allows something like this: > (edn/read reader false eof { :readers *data-readers* } ) > > Is there something equivalent with clojure.tools.reader? > > Thanks, > Sarkis > > > -- > 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.