> would it be possible for routines to check to see if they are not
> using multimethod-ness, and in that case be performance optimized, yet
> have the syntax for them all be somehow less different?

There is certainly a case for that, but (correct me if I'm wrong), but
one of the underlying philosophies to Clojure is "pay for what you
use".  This goes a long way toward explaining many of the language
design decisions, mms being only one.

On the other hand, it may be cleaner if multimethod-ness could be
garnered from the way a common function form is ... well, formed:

(fun <name> [] ...)     ;; equivalent to defn
(fun [] ...)            ;; lambda
(fun <name> :on [] ...) ;; equivalent to defmulti with bodies being
the dispatch functions
(fun <name> :when <dispatch value> [] ...) ;; equivalent to defmulti

This could likely be done using macros.

-m


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