[m-dev.] user-defined operators

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jul 8 20:13:28 AEST 1999


On 08-Jul-1999, Ralph Becket <rwab1 at cam.sri.com> wrote:
> What's the status of setting up your own operators?  On the one hand
> I'm against it seeing how the facility gets abused by novice Prolog
> programmers; on the other it seems genuinely useful for such functions
> as the above and for e.g. coding in the monadic style.

I agree that it is genuinely useful.

However, it is non-trivial to implement, if you want to do it properly.
The problem is the way in which it interacts with the module system.
Supporting user-defined operators within a single module would not be
too hard, but really you'd like to be able to declare operators in
the interface section of a module and have them exported to other
modules.  Unfortunately allowing that makes things much trickier...

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- 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