Also many of the features required to write things like the Clojure data structures in Clojure (protocols, deftype etc) weren't in initial versions of Clojure, and being able to implement Clojure in Clojure was one of the main motivations for adding them if I remember correctly.
On 23 April 2014 05:32, Gary Trakhman <[email protected]> wrote: > Clojurescript, in addition to just being generally useful, was a > proof-of-concept of future clojure-in-clojure efforts. Therefore, it > raises the bottom level of abstraction from only host facilities by > enabling deftype and protocols at the bottom. Thus, it was a test-bed to > allow pure-clojure implementations of things that are currently written in > java. > > > On Tue, Apr 22, 2014 at 1:27 PM, Yehonathan Sharvit <[email protected]>wrote: > >> I am reading the code of clojurescript in order to understand the cljs >> data structures and I am asking myself: >> >> Why the implementation of PersistentHashMap in clojurescript is written >> in *clojurescript* - and not in *javascript* - while the implementation >> of PersistentHashMap in clojure is written in *java*? >> >> -- >> Note that posts from new members are moderated - please be patient with >> your first post. >> --- >> You received this message because you are subscribed to the Google Groups >> "ClojureScript" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/clojurescript. >> > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
