[Haskell-cafe] Interesting Thread on OO Usefulness (scala mailing list)

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Tue May 5 12:27:17 EDT 2009

Am Montag, 4. Mai 2009 13:35 schrieb Bulat Ziganshin:
> Hello Paolo,
> Monday, May 4, 2009, 2:05:44 PM, you wrote:
> > Martin Odersky advocates the OO features of the scala language
> > proposing an interesting problem where the OO approach seams
> > valuable.
> i know two problems in Haskell/GHC that require OO-loke features -
> extensible exceptions and GUI widget types hierarchy

Note that you don’t need different types for different kinds of GUI widgets if 
you use Functional Reactive Programming (FRP). You need different types if 
you use OO because you have to explicitely modify widgets after you have 
created them, and what modifications you are allowed to do, depends on the 
kind of widget. With FRP, you specify the behavior over all time when you 
create the widget, so no need for later method calls.

Best wishes,

More information about the Haskell-Cafe mailing list