users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: if


From: Calum Grant
Subject: RE: if
Date: Tue, 30 Jan 2001 09:47:27 -0000

> If you want to write practical Prolog programs, there is every need
> for an if-then-else construct.

Yes.

> In logic languages which don't have if-then-else, but which do have
> cut, e.g. Lambda Prolog, you can simulate if-then-else using cut.
> But this is a hack; it's nicer if the language supports if-then-else
> directly.

I always thought ! and -> compiled to the same thing.  I tend always to use
the ! notation since I find it easier to understand what's going on.  I am a
bit of a purist though, and dislike either.

Calum
--
  Calum Grant - address@hidden - 01223 569700

The Information contained in this e-mail message is intended only for
the individuals named above. If you are not the intended recipient,
you should be aware that any dissemination, distribution, forwarding
or other duplication of this communication is strictly prohibited.
The views expressed in this e-mail are those of the individual
author and not necessarily those of Envisional Software Solutions Ltd.
Prior to taking any action based upon this e-mail message you should
seek appropriate confirmation of its authenticity. If you have
received this e-mail in error, please notify the sender immediately.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]