[m-dev.] Foreign type compare and unification

Tyson Dowd trd at cs.mu.OZ.AU
Tue May 21 08:46:43 AEST 2002


On 19-May-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> 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.

I still don't see your point (nor do I agree about inextensibility
implying inelegance but it hardly matters). 

Are you just making a comment or are you objecting to the idea that
Mercury could use such a system on these grounds?

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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