Clojure's persistent data structures use sharing under the hood. Ergo, so
do clojurescript's.

Phil
On Oct 23, 2012 8:23 PM, "Raoul Duke" <rao...@gmail.com> wrote:

> On Tue, Oct 23, 2012 at 12:19 PM, David Nolen <dnolen.li...@gmail.com>
> wrote:
> > On Tue, Oct 23, 2012 at 3:17 PM, Brian Craft <craft.br...@gmail.com>
> wrote:
> >> Does clojurescript have to do full copies on collection types to keep
> them
> >> immutable? Or is there some nice way to efficiently do immutable
> objects in
> >> js?
> > ClojureScript now implements all of Clojure's persistent data structures.
>
> hm, uh, that doesn't seem to answer the question, as i read it. :-)
> you /could have/ implemented them via slow expensive full copies, or
> you could implement them with sharing under the covers. i assume you
> mean the latter is true, but it isn't totally clear just from that
> sentence.
>
> --
> 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 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

Reply via email to