
29 Oct
2004
29 Oct
'04
6:34 p.m.
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. -- flippa@flippac.org