Reviving this thread to see if anyone has any info at this point. Looking at the implementation of extend-type in JVM Clojure and ClojureScript, it's obvious that in ClojureScript it's not a simple "wrapper" macro for a specific use of extend, like it is in JVM Clojure.
As this particular mechanism is not currently available in ClojureScript, does anyone (1) know if extend is slated to make its way into ClojureScript, or (2) have a specific idiom to accomplish the same thing? -Daniel On Saturday, January 14, 2012 1:42:15 AM UTC-5, Takahiro Hozumi wrote: > > Hi, > I want to set a default behavior on a protocol. > The following article describes how to implement inheritance in > Clojure by using `extend`, but `extend` doesn't exist in > ClojureScript. > Is there a way to set a default behavior on a protocol in > ClojureScript? > > (david-mcneil.com :blog), Implementation "inheritance" in Clojure > > http://david-mcneil.com/post/1475458103/implementation-inheritance-in-clojure > > Thanks. -- 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