[Haskell-cafe] Type vs TypeClass duality
Bulat Ziganshin
bulat.ziganshin at gmail.com
Tue Oct 23 09:39:18 EDT 2007
Hello Luke,
Tuesday, October 23, 2007, 12:42:19 PM, you wrote:
> of me whining about Haskell's "lack" of OO features. How are you
> supposed to design your programs modularly if you can't have a
> type-agnostic list?
> But it doesn't bug me anymore. I can't really say why.
i tink because it's very easy to pass any required function together
with the data. OOP classes is just fixed way to do this while FP is
lower-level, more flexible tool. look at
http://haskell.org/haskellwiki/OOP_vs_type_classes
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list