On Mon, 07 Dec 2009 06:53:38 -0500, Rich Hickey <richhic...@gmail.com> wrote:
> Yes, methods are not really functions. Thinking about them as closures > over the object is a good way to go - you can see that analogy in play > when you consider recur, which works with these methods, but could not > rebind 'this'. The recur case sealed the deal in the decision not to > include 'this' in the argument lists. I had a quick play with protocols, and the biggest problem I had getting started was realising that the signature of a method definition in defprotocol was different to the signature required to implement the same method in deftype. FWIW, I found it very non-intuitive. -- Hugo Duncan -- 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