On Mon, Oct 8, 2012 at 10:46 PM, Frank Siebenlist
<frank.siebenl...@gmail.com> wrote:
> Interesting project, although I'm still a little unclear about the 
> "convincing" use cases where you would choose polyfn over protocols...
>
> Also, how does the polyfn implementation compare to the clojurescript 
> protocol implementation?

Not sure I could comment on that, since I've never used ClojureScript.

The point of polyfns was to separate out the dispatch from the class
generation. If you don't care about the class generation, then they
would both work just as well. If you need the class generation, then
you need protocols. If you need not class generation, then you need
polyfns. This is about simpler composable parts. Protocols could
conceivably have been built on something like polyfns, adding class
generation.

-- 
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