[m-dev.] Syntactic sugar for functor matching

Michael Day mikeday at bigpond.net.au
Fri Nov 2 17:36:56 AEDT 2001


> It's not 100% backwards compatible, but I think it is compatible enough.
> The only incompatibility would be if someone was using '='/2 as a data
> constructor, and I think that is rare enough that we don't need to worry
> about it.

I use '='/2 in many places as a data constructor - it works well as a pair
functor for assoc_lists for example, and makes a nice syntax for
constructing XML attribute lists.

Michael


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