On Fri, 29 Oct 2004, Brian Beckman wrote:

> This is a tiny question on the "data" syntax.
>

<snip>

There's a significant difference between data constructors and ordinary
functions - you can't use pattern-matching to match an ordinary function.
In effect, data constructors are used not just to build values but also to
take them apart.

Syntactically speaking, data constructors must begin with a capital
letter, variables and function definitions with a lower case letter.

-- 
[EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to