Re: Prolog goals order
- From: "Peter Wing Larsen" <peterwing@xxxxxxx>
- Date: Thu, 24 Aug 2006 12:41:04 +0200
"Mauro DiNuzzo" <picorna@xxxxxxxxx> wrote in message
news:ZYHEg.145$%37.109@xxxxxxxxxxxxxxxxxxxxxx
I wish to submit an issue to the newsgroup. Perhaps it is old and not all
would be intereseted in.
However, it deals with the order of the goals in a clause. I will consider
mathematics for simplicity, but I think it could be applied whereever.
Prolog system reads goals in sequence (of course), also when it attempts
to
solve a set of goals. The only way to achieve the maximum knowledge over
the
given set of goals is to delay some of them. This is what happens by means
of attributed variables.
As an example, the goal:
?- X+1>10, read(X).
raises an instantiation error. (we have the mind full of examples like
this!)
My question is: "why Prolog does not change itself to overcome this
problem?".
This is also something I have thought about as a novice prolog learner. Is
there any reason why prolog is this way?
.
- Follow-Ups:
- Re: Prolog goals order
- From: Jan Wielemaker
- Re: Prolog goals order
- References:
- Prolog goals order
- From: Mauro DiNuzzo
- Prolog goals order
- Prev by Date: Re: Prolog Programming for AI, problem 7.1
- Next by Date: Re: Prolog goals order
- Previous by thread: Prolog goals order
- Next by thread: Re: Prolog goals order
- Index(es):
Relevant Pages
|