[Haskell-cafe] Renaming constructors for readability
David Roundy
droundy at darcs.net
Tue Nov 13 17:57:23 EST 2007
On Tue, Nov 13, 2007 at 11:44:30PM +0100, Henning Thielemann wrote:
>
> On Tue, 13 Nov 2007, Dougal Stanton wrote:
>
> > -- int a = 3;
> > -- int *pa = &a;
> > ampersand :: t -> Pointer t
> > ampersand a = Just a
>
> What's bad about using 'ampersand' function as replacement for the
> constructor 'Just'?
It wouldn't work in pattern matching.
--
David Roundy
Department of Physics
Oregon State University
More information about the Haskell-Cafe
mailing list