How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)

Liste des GroupesRevenir à cl prolog 
Sujet : How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)
De : janburse (at) *nospam* fastmail.fm (Mild Shock)
Groupes : comp.lang.prolog
Date : 12. Nov 2024, 16:30:48
Autres entêtes
Message-ID : <vgvsb7$3e31$1@solani.org>
References : 1 2
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19
Concerning the input (xxx yyy zzz) the OP wrote:
I would expect it to print zzz(xxx(yyy)).
Where did he get this requirement from, he didn’t
compare other Prolog systems, right? So it came from
his applicationdomain. But what was his application
domain? Ok, lets proceed to an example with multiple
brakets. Lets make the Pascal “begin” “end” example,
by replacing xxx and zzz by “begin” and “end”.
I get this result:
?- member(X,[begin,end]), current_op(Y,Z,X).
X = (begin), Y = 1100, Z = fy ;
X = (end), Y = 1100, Z = yf.
?- X = (begin
|          x = 1;
|          y = 2;
|          begin
|               z = 3
|          end
|       end).
X = (begin x=1;y=2;begin z=3 end end).
But is the abstract parse term, the Prolog result useful?

Date Sujet#  Auteur
12 Nov 24 * How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)9Mild Shock
12 Nov 24 +* Re: How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)7Mild Shock
14 Nov 24 i`* Re: How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)6Mild Shock
14 Nov 24 i +- Re: How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)1Mild Shock
14 Nov 24 i `* Re: How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)4Julio Di Egidio
14 Nov 24 i  `* Re: How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)3Mild Shock
14 Nov 24 i   +- Re: How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)1Mild Shock
15 Nov 24 i   `- Re: How Prolog became an education nightmare (Was: 50 Years of Prolog Nonsense)1Julio Di Egidio
14 Nov 24 `- Mode yfy to the rescue (Was: How Prolog became an education nightmare)1Mild Shock

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal