Re: Clojure/Script pr-str/read-string roundtrip differences

2013-05-10 Thread David Nolen
I believe 0.0-1806 is the latest. On Fri, May 10, 2013 at 12:35 PM, Brian Jenkins wrote: > Doh! > > I was running 0.0-1586 instead of 0.0-1798 > > Brian > > On Monday, January 7, 2013 1:13:30 AM UTC+1, Thomas Heller wrote: > >> Hey, >> >> I'm writing a Clojure Webapp with a CLJS Frontend and ex

Re: Clojure/Script pr-str/read-string roundtrip differences

2013-05-10 Thread Brian Jenkins
Doh! I was running 0.0-1586 instead of 0.0-1798 Brian On Monday, January 7, 2013 1:13:30 AM UTC+1, Thomas Heller wrote: > > Hey, > > I'm writing a Clojure Webapp with a CLJS Frontend and expected to be able > to cljs.reader/read-string everything I pr-str'd on the CLJ side. That > however does

Re: Clojure/Script pr-str/read-string roundtrip differences

2013-05-09 Thread David Nolen
Heh didn't notice the date on the first post :) On Thu, May 9, 2013 at 8:29 PM, Thomas Heller wrote: > Hey Brian, > > been a while since that Post, Issue #1 has been resolved for a while (see > http://dev.clojure.org/jira/browse/CLJS-466) but I actually switched to > using proper EDN tags via I

Re: Clojure/Script pr-str/read-string roundtrip differences

2013-05-09 Thread Thomas Heller
Hey Brian, been a while since that Post, Issue #1 has been resolved for a while (see http://dev.clojure.org/jira/browse/CLJS-466) but I actually switched to using proper EDN tags via IPrintWithWriter, clj/print-method and clojure.edn/read-string like you suggested. #2 I solved indirectly via #1,

Re: Clojure/Script pr-str/read-string roundtrip differences

2013-05-09 Thread David Nolen
Patch welcome for 1. As far as 2 I myself see no way to make that work without considering a numerics overhaul. On Sun, Jan 6, 2013 at 7:13 PM, Thomas Heller wrote: > Hey, > > I'm writing a Clojure Webapp with a CLJS Frontend and expected to be able > to cljs.reader/read-string everything I pr

Re: Clojure/Script pr-str/read-string roundtrip differences

2013-05-09 Thread Brian Jenkins
Hi, Thomas. I also found this frustrating. Here's a work-around I came up with: ;; assuming (defrecord Design [id name]) in namespace tektite.model.design (cljs.reader/register-tag-parser! "tektite.model.design.Design" tektite.model.design/map->Design) (extend-protocol IPrintWithWriter t

Clojure/Script pr-str/read-string roundtrip differences

2013-01-06 Thread Thomas Heller
Hey, I'm writing a Clojure Webapp with a CLJS Frontend and expected to be able to cljs.reader/read-string everything I pr-str'd on the CLJ side. That however does not work for defrecords and BigDecimals (1.1M) . 1. defrecord In CLJ I can: (ns dummy) (defrecord Foo [bar]) (pr-str (