[m-dev.] Types with user defined equality.

Ralph Becket rbeck at microsoft.com
Tue May 15 05:50:08 AEST 2001


In the fast string module I just posted, it would have been nice
to be able to declare the (structured) str type as having an
equality pred, but have this notion of equality visible only
*outside* the defining module.

As it stands, you have to torture your code (or make everything
cc_multi) if you pattern match against a d.u. type with user-defined
equality, making it far less attractive.  Indeed, searching on the
string "where equality" fails to come up with any instances of its
use in extras or the library (even set.m doesn't use it).

- Ralph
--------------------------------------------------------------------------
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