Re: clojure edn function reader

2015-05-28 Thread ronen
Leon spot on, maybe ill get to implement such a thing :) On Friday, May 29, 2015 at 2:44:04 AM UTC+3, ronen wrote: > > Gary your last comment hits what I look for exactly: > > "If you are looking for an encoding of clojure's syntax extensions into > pure edn reader tags (as my crystall ball tell

Re: clojure edn function reader

2015-05-28 Thread ronen
Gary your last comment hits what I look for exactly: "If you are looking for an encoding of clojure's syntax extensions into pure edn reader tags (as my crystall ball tells me you might be), I haven't encountered such a thing yet, even though it's conceivable." My use case is to pass functions

Re: clojure edn function reader

2015-05-28 Thread Leon Grapenthin
I don't know of any open source implementation of the Datomic function literal. It shouldn't be too difficult and a great excercise. However just using read and eval won't suffice. Datomic creates an anonymous namespace around for each of those functions with the specified requires and imports

Re: clojure edn function reader

2015-05-28 Thread Gary Verhaegen
Not very clear to me either, but, in the spirit of reducing the field of possible understandings of the question: are you aware of eval? If so, can you reframe your question around it, i.e. what is it missing for your use-case or haw it's not a good fit? (If you are not yet aware of eval, know that

Re: clojure edn function reader

2015-05-28 Thread Herwig Hochleitner
2015-05-27 18:14 GMT+02:00 ronen : > Ok ill expand the question a bit hoping to make it clearer :) > Still not clear to me, but I'll try to expand a bit in the hope of showing what is unclear. Clojure EDN has support for literal tags > and

Re: clojure edn function reader

2015-05-27 Thread ronen
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 and the ability of extending i

Re: clojure edn function reader

2015-05-27 Thread Andy Fingerhut
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 danger

clojure edn function reader

2015-05-27 Thread ronen
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 G