[mercury-users] constructor class syntax

Michael Day mikeday at corplink.com.au
Wed Nov 3 17:48:06 AEDT 1999


> However, I still think the declaration should be `:- typeclass'
> rather than `:- class'.  The Haskell `class' declaration often
> confuses beginners, who think it declares a class of objects,
> i.e. a type, rather than declaring a class of types.
> This is particularly common amongst people who have learnt C++ or Java
> first ;-).  The `:- typeclass' notation emphases that the concept is
> quite different from C++ or Java classes.

Hmm can't deny that, though having :- type and :- class feels perhaps more
orthogonal? Perhaps the discontent springs from wanting to spell it with a
space between the words :)

Michael


--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list