Re: cond and match

2001-12-10 Thread Hannah Schroeter
Hello! On Sun, Dec 09, 2001 at 01:07:08PM +, Marcin 'Qrczak' Kowalczyk wrote: > Fri, 7 Dec 2001 17:12:52 -0500 (EST), David Feuer <[EMAIL PROTECTED]> pisze: > > I'm wondering why Haskell doesn't support Scheme-like cond statements > > or a pattern matching predicate. > I agree that both con

Re: cond and match

2001-12-09 Thread Marcin 'Qrczak' Kowalczyk
Fri, 7 Dec 2001 17:12:52 -0500 (EST), David Feuer <[EMAIL PROTECTED]> pisze: > I'm wondering why Haskell doesn't support Scheme-like cond statements > or a pattern matching predicate. I agree that both constructs make sense. The main objective is probably that the syntax is already quite rich an

cond and match

2001-12-07 Thread David Feuer
I'm wondering why Haskell doesn't support Scheme-like cond statements or a pattern matching predicate. cond c1->v1 c2->v2 or possibly cond | c1 -> v1 | c2 -> v2 ... would translate as case () of _ | c1 -> v1 | c2 -> v2 | also, it seems t