hi!

On Thu, May 24, 2012 at 4:42 AM, Rostislav Svoboda
<rostislav.svob...@gmail.com> wrote:
> After seeing [1] from Rich Hickey I wondered what he means with
> "replace if statements with polymorphic functions"? Why and how
> exactly should I do it? Your blogpost opened my eyes. Thanks a lot
> Dominikus

interesting thread. are there folks coming to clojure who aren't
steeped in OO? the whole dynamic dispatch thing is in some sense about
avoiding if's, and is a pretty common clear rule of thumb for oo: if
you have an if, you are probably doing it wrong.

(whereas in functional languages, you should use pattern matching.
which ends up just being sugar for if statements, probably :-)

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