3 ms·
Is there any documentation on "specify"? I've seen it used from time to time (eg in your Om code), but the only documentation I've found is the dev wiki page[1]
by dkersten 12y ago
Is there any documentation on "specify"? I've seen it used from time to time (eg in your Om code), but the only documentation I've found is the dev wiki page[1].
[1] http://dev.clojure.org/display/design/specify+i.e.+reify+for+instances http://dev.clojure.org/display/design/specify+i.e.+reify+for...
- swannodette 12y agoAt the moment there is not, someone should add something to the wiki. Basically it clones the target and adds the specified protocol implementations - basically instance level extend-type.
- ddellacosta 12y agoThis is an old post but I talk about it a bit here (toward the bottom): http://www.davedellacosta.com/cljs-protocols http://www.davedellacosta.com/cljs-protocols (I need to update my github link to point to a static version of Om's code!)