Hello Arun,

Monday, October 13, 2008, 2:50:27 PM, you wrote:

> I agree that this does look more succinct... but what if I write some generic 
> code for the
> in the render method of the Drawable class and package it into a library..

i recommend you to read http://haskell.org/haskellwiki/OOP_vs_type_classes
first and then look into http://haskell.org/haskellwiki/Library/Streams
 - it's a good example of extensible library written using type
 classes. later i've used this approach to write extensible library in
 C++ using templates (not classes)

-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to