[Haskell-cafe] Dynamic types through unsafeCoerce

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Dec 13 09:48:01 EST 2006


Hello Udo,

Wednesday, December 13, 2006, 3:25:32 AM, you wrote:

> Well, all you need to do is to throw out your OO-Think (and with it
> Typeable and casts) and you'll realize what you're actually doing here:
> you're passing functions.  Say so and everything comes naturally.

Alfonso, you may be interested in reading the following pages where i put
some examples of passing functions in the cases where OOP programmers use
classes. after all, OOP class is just data+functions bundled together,
while in Haskell these are separate concepts

http://haskell.org/haskellwiki/OOP_vs_type_classes
http://haskell.org/haskellwiki/IO_inside (look at "Example: a list of IO
actions" and next chapters)




-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list