On 7-Dec-09, at 4:16 PM, ataggart wrote:
> On Dec 7, 12:37 pm, Bob Hutchison <hutch-li...@recursive.ca> wrote:
>> On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote:
>>> 2009/12/6 Bob Hutchison <hutch-li...@recursive.ca>
>>
>>>> Yes! Thanks! The dispatch on type rather than class is the trick. I
>>>> actually ended up writing a macro, this is *much* better.
>>
>>> Please note that in clojure, it's the dispatch on the class that's  
>>> the
>>> "trick", not on the type ;-)
>>
>> Sorry, I don't understand what you mean. Could you expand on that a  
>> bit?
>>
>
> I think Laurent means that type should be the preferred/standard
> mechanism, and class reserved for sneaking over to java-land.


Okay, that makes sense. Maybe I wasn't paying attention but it seems  
to me that the examples I've seen all use class. But, what I thought  
doesn't matter... type certainly works nicely.

Cheers,
Bob

----
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://www.recursive.ca/hutch



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