Article View: comp.lang.prolog
Article #3946Committed Choice
From: Pat Chkoreff
Date: Fri, 10 Mar 1989 08:47
Date: Fri, 10 Mar 1989 08:47
9 lines
678 bytes
678 bytes
It seems to me that the if-then-else construct in Prolog completely eliminates the need for the cut, and is a far superior mechanism for enforcing committed choice. Am I right? Books on Prolog tend to emphasize the nuances of using the cut, but rarely discuss if-then-else. Is this due to historical reasons? - Patrick Chkoreff
Technical Details
Message-ID:
<11500012@hpldola.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!think!ames!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!hpldola!patchShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!think!ames!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!hpldola!patch From: patch@hpldola.HP.COM (Pat Chkoreff) Newsgroups: comp.lang.prolog Subject: Committed Choice Message-ID: <11500012@hpldola.HP.COM> Date: 10 Mar 89 08:47:10 GMT Organization: HP Elec. Design Div. -ColoSpgs Lines: 9