cond and match

Hannah Schroeter
Mon, 10 Dec 2001 17:26:35 +0100


On Sun, Dec 09, 2001 at 01:07:08PM +0000, Marcin 'Qrczak' Kowalczyk wrote:
> Fri, 7 Dec 2001 17:12:52 -0500 (EST), David Feuer <> 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 and this would be another thing
> to learn and implement.

As well, these constructs would reserve two more identifiers and so
break quite some existing programs. I could expect that especially
match could be used sometimes, like
	let match = search foo bar in
	use match somehow

Kind regards,