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
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
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