Ok ill expand the question a bit hoping to make it clearer :) I'm well aware of read/read-string and the security implications they bring (not interested in those),
Clojure EDN has support for literal tags <https://github.com/edn-format/edn#inst-rfc-3339-format> and the ability of extending it with custom ones (records for example https://github.com/miner/tagged). I have a use case for storing functions in EDN and Iv found this <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FDatomic%2Fday-of-datomic%2Fblob%2Fmaster%2Fresources%2Fday-of-datomic%2Fclojure-data-functions.edn&sa=D&sntz=1&usg=AFQjCNHi_41fzdbV7ygT3-_g3oI4ZeJVJw>, which seems to be an EDN form containing serialized Clojure functions for Datomic (which is closed source so I can't use its reader). My question is if there is any open source implementation, I can't seem to find one. Thanks On Wednesday, May 27, 2015 at 5:36:20 PM UTC+3, Andy Fingerhut wrote: > > I am not sure I understand your question. I will answer some questions > with some of the same key words in them, and then you can decide if one of > them was close to yours :) > > Clojure includes clojure.core/read [1] and clojure.core/read-string, which > can read any Clojure code, but they can be dangerous in allowing side > effects, including arbitrary code execution, so they are really only > intended for reading from trusted sources (e.g. code or data your wrote > yourself). > > Since Clojure 1.5.1, it also includes clojure.edn/read [2] and > clojure.edn/read-string. Those are intended for reading data in edn > format. They have limitations, of which I don't remember them all, but > IIRC at least one is that they cannot read back in records in some of the > ways that Clojure code can print them out. They work well when the data > you have is just lists, vectors, sets, maps, and primitive types. > > There is also the tools.reader library [3], which has its own > implementations of all of the functions above, implemented in Clojure > itself. > > If none of those is what you are looking for, can you rephrase your > question? > > Andy > > [1] > http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/read > [2] http://clojure.github.io/clojure/clojure.edn-api.html#clojure.edn/read > [3] https://github.com/clojure/tools.reader > > > > On Wed, May 27, 2015 at 6:02 AM, ronen <nar...@gmail.com <javascript:>> > wrote: > >> Hey, I'm looking for an edn data read for clojure functions (similar to >> https://github.com/Datomic/day-of-datomic/blob/master/resources/day-of-datomic/clojure-data-functions.edn >> ) >> >> Is there any known implementation? >> >> Thanks >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com >> <javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> 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+u...@googlegroups.com <javascript:>. >> 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.