Hi,

In principle, dispatch is orthogonal to namespacing.  It is true that 
traditional OO systems complect these two things, but there is no inherent 
need to do so.  Separating dispatch (i.e., methods) from namespacing is 
simpler and more flexible.

This is especially useful when you have multiple inheritance, since the 
traditional problem of name collisions of unrelated methods does not occur 
in a system that separates namespaces from types, but there are other 
advantages as well (such as the nice uniformity of being able to reference 
methods as first-class functions without resorting to lambda-expressions).

Matthias

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