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

2009-05-07 Thread Wolfgang Jeltsch
Am Dienstag, 5. Mai 2009 18:39 schrieb Bulat Ziganshin: Hello Wolfgang, Tuesday, May 5, 2009, 8:27:17 PM, you wrote: 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

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

2009-05-05 Thread Wolfgang Jeltsch
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

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

2009-05-05 Thread Bulat Ziganshin
Hello Wolfgang, Tuesday, May 5, 2009, 8:27:17 PM, you wrote: 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

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

2009-05-04 Thread Paolo Losi
Hi all, I'm following an interesting thread on the scala mailing list: http://www.nabble.com/-scala--usefulness-of-OOP-td23268250.html Martin Odersky advocates the OO features of the scala language proposing an interesting problem where the OO approach seams valuable. I would be very much

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

2009-05-04 Thread 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

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

2009-05-04 Thread Andrew Wagner
This sounds like a really interesting question. To save some people weeding through the thread and Jon Harrop's usual trolling garbage, here's a description of the problem: [quote] Here's [a]language to to interpret (where postfix * means tupling): Variables: x Integer literals: i Terms: t =

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

2009-05-04 Thread Luke Palmer
ML functors seem the ideal tool for this task. People have shown how you can emulate them with typeclasses, but it won't necessarily be pretty... On Mon, May 4, 2009 at 4:05 AM, Paolo Losi paolo.l...@gmail.com wrote: Hi all, I'm following an interesting thread on the scala mailing list:

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

2009-05-04 Thread Martijn van Steenbergen
Andrew Wagner wrote: [quote] Here's [a]language to to interpret (where postfix * means tupling): Variables: x Integer literals: i Terms: t = Lambda x*. t | Apply t t* | Var(x) | Num(i) Can someone explain to me how I should read this? It supposedly explains what the postfix

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

2009-05-04 Thread Mads Lindstrøm
Hi Bulat Ziganshin wrote: 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

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

2009-05-04 Thread Bulat Ziganshin
Hello Mads, Monday, May 4, 2009, 7:01:16 PM, you wrote: i know two problems in Haskell/GHC that require OO-loke features - extensible exceptions and GUI widget types hierarchy Yes, type hierarchies require OO. But, do we really need to represent different widget-types in a hierarchy? An

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

2009-05-04 Thread Brent Yorgey
On Mon, May 04, 2009 at 03:08:25PM +0200, Martijn van Steenbergen wrote: Andrew Wagner wrote: [quote] Here's [a]language to to interpret (where postfix * means tupling): Variables: x Integer literals: i Terms: t = Lambda x*. t | Apply t t* | Var(x) | Num(i) Can someone explain

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

2009-05-04 Thread Tillmann Rendel
Hi, Paolo Losi wrote: I'm following an interesting thread on the scala mailing list: http://www.nabble.com/-scala--usefulness-of-OOP-td23268250.html Martin Odersky advocates the OO features of the scala language proposing an interesting problem where the OO approach seams valuable. I would