[m-dev.] if-then goals
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Jul 24 16:53:45 AEST 2003
On 24-Jul-2003, Julien Fischer <juliensf at students.cs.mu.OZ.AU> wrote:
>
> The compiler currently has code for handling goals of the form (if A then B)
> or (A -> B). However the code in the parser for handling these
> is commented out, with the reason being given that because the
> semantics for standard prolog (A -> B ; fail) are different from those
> for Mercury, (A -> B ; true) this is disallowed for the moment?
>
> Is the "moment" up?
IMHO no; Prolog is still too popular, and given that Mercury syntax is mostly
like Prolog syntax, it would be confusing if "(A -> B)" meant one thing in
Prolog and something quite different in Mercury.
However, I think it would be OK to allow "(if A then B)", if people want that.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- 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