Re: Emulating inheritance on protocols in ClojureScript.

2012-06-09 Thread David Nolen
Patch welcome! :) On Sat, Jun 9, 2012 at 9:02 PM, semperos wrote: > 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 > spe

Re: Emulating inheritance on protocols in ClojureScript.

2012-06-09 Thread semperos
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 mecha

Emulating inheritance on protocols in ClojureScript.

2012-01-13 Thread Takahiro Hozumi
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), Implementat