[m-dev.] adding promise_only_solution

Peter Schachte pets at cs.mu.OZ.AU
Fri Nov 6 11:55:06 AEDT 1998


> As I mentioned at the last Mercury meeting, I'm planning
> on adding `promise_only_solution' to the Mercury standard
> library before the upcoming release.  One thing I haven't
> figured out, though, is exactly where to put it.
> One possibility is a new module, called say `promise.m'.
> Another possibility is to add it to builtin.m.

Ultimately, I think a prettier (and more efficient) way to make such a
promise should become part of the language proper, so I'd argue it
should go in builtin.m.  If/when it gets compiler support, then
existing code would continue to work, but new code wouldn't need messy
lambdas and packaging up of multiple outputs.

-- 
Peter Schachte                | The greater part of our happiness depends on
mailto:pets at cs.mu.OZ.AU       | our dispositions and not on our
http://www.cs.mu.oz.au/~pets/ | circumstances.
PGP: finger pets at 128.250.37.3 |     -- Martha Washington 



More information about the developers mailing list