On 04.11.2008, at 19:08, Meikel Brandmeyer wrote:

> Suppose get, contains?, etc. were multimethods. I would not have  
> needed
> gen-class. I just would register my own implementations for the  
> lazy-map.
> But the problem is: Clojure's map interface is not implemented with
> multimethods. They have a Java side.

That's exactly my point. Multimethods may well be sufficient or even  
superior for implementing OO concepts useful in Clojure. We will see  
when someone actually uses them this way (or has it already  
happened?). But as long as the most important interfaces (sequences,  
maps, numbers), which happen to be the ones also used by the built-in  
types, don't use the same mechanism, there will always be first-class  
and second-class citizens in Clojure's datatype universe.

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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to