[m-dev.] Foreign type compare and unification
Fergus Henderson
fjh at cs.mu.OZ.AU
Sun May 19 20:45:40 AEST 2002
On 17-May-2002, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> On 15-May-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > On 14-May-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > > IMHO the typeclass approach with the deriving annotation from Haskell seems
> > > the most elegant approach to me.
> >
> > Haskell's "deriving" annotation has the drawback that the language
> > has a fixed list of classes for which you are allowed to write "deriving".
> > The mechanism is not extensible.
>
> This is true. But I'm not sure what your point is. Why do you mention
> this?
My point is that the typeclass approach with the deriving annotation from
Haskell does *not* seem to be the most elegant approach to me. Because the
list of such classes is fixed and not extensible, it seems rather inelegant.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list