The ordering of arguments to the constructor is largely left to the
whims of the programmer; sometimes an order is chosen because it
facilitates a useful instance of currying, but more frequently it is
simply whichever arbitrary order the programmer happened to type in.
> or
>
> data Heap e = E | T (Heap e) (Int, e) (Heap e)
Tuple forms tend to be discouraged in constructors. They add extra
punctuation to pattern matches without really adding anything useful.
> Ideas?
--
-Julian Blake Kongslie
If this is a mailing list, please CC me on replies.
vim: set ft=text :