Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Differences between rules and if....then....statements

24 views
Skip to first unread message

M. Judd

unread,
Nov 10, 2000, 3:00:00 AM11/10/00
to
What is the difference between rules and" if..then statements" in procedural
languages?

Mickey Judd


>


Martin Sondergaard

unread,
Nov 10, 2000, 3:00:00 AM11/10/00
to
"M. Judd" wrote :

One difference is that you write the rule head
before writing the rule body.
This lets you think about the "conclusion" of the rule,
i.e. the rule head, more than the rule body.

Its possible to write prolog code using rule heads
for rules that you haven't defined yet,
and which you will define later.
You don't need to think about the rule body until later.

This makes for easy top-down programming.

--
Martin Sondergaard.


0 new messages