On 19 Jan 2010, at 22:32, Stuart Sierra wrote:

You can include multiple definitions of the same method, with
different arguments, in a deftype.
(deftype Foo [f]
 (bar [x] ...)
 (bar [x y] ...))

Don't know if that's intended, but it works.
Indeed, thanks!

Assuming that this is an intentional feature, I would expect the deftype macro to do the translation from the standard Clojure notation to a list of multiple methods. Rich, is that something you'd want? I volunteer to provide a patch in that case.
Konrad.

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