Ok Thanks On Mar 2, 11:19 am, David Nolen <[email protected]> wrote: > pr-str will do what you want. That said we should probably add toString > methods to the core datatypes to prevent this surprise. > > David > > > > > > > > On Fri, Mar 2, 2012 at 11:14 AM, Chris McBride <[email protected]> wrote: > > In Clojure (str {:a 1}) returns "{:a 1}". > > In ClojureScript (str {:a 1}) returns "[Object object]". > > > As a result, in order to send data to and from the server I've been > > doing this: (goog.json/serialize (cljs->js x)). This seems like > > unnecessary overhead to convert everything a JS object first, is there > > a technical reason why ClojureScript behaves differently here? Or has > > this just not been implemented yet? > > > Thanks > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to [email protected] > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > [email protected] > > 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 post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
