🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2795

Improving readability with cuts

#2795
From: Randy Goebel
Date: Thu, 01 Oct 1987 22:15
26 lines
1837 bytes
In article <5265@jade.BERKELEY.EDU>, lagache@violet.berkeley.edu (Edouard Lagache) writes:
>      While I believe the dot
>      notation for cons cells is part of the original language specification,
>      it isn't mentioned in Clocksin and Mellish...

The only specification for Prolog is that it is SLD resolution, implemented
with a depth-first, left to right search strategy.

> 
>      As to the complaints on '!,fail' clauses.  I too am fully aware that
>      they are redundant.  However, what a computer can easily deduce from
>      the code, may be difficult for humans to discern, particularly for
>      those new to PROLOG.  While A.I. researchers seem determined to make
>      their code as cryptic as possible, the rest of the programming world is
>      still in the midst of a "readability revolution".  Given the terseness
>      of some of the code touted as "improvements" over my work, it may be
>      time for some people on this net to go back and take a course in
>      structured Pascal!

Horse manure.  This comment betrays the same attitude of millions of arcane
programmers who refuse to pull their heads from the sand.  To consider adding
"cut fail" atoms for readability completely misses the whole point of logic
programming.

Randy Goebel
University of Alberta
Technical Details
Message-ID: <173@pembina.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hao!oddjob!gargoyle!ihnp4!alberta!goebel

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hao!oddjob!gargoyle!ihnp4!alberta!goebel
From: goebel@alberta.UUCP (Randy Goebel)
Newsgroups: comp.lang.prolog
Subject: Improving readability with cuts
Message-ID: <173@pembina.UUCP>
Date: Thu, 1-Oct-87 18:15:31 EDT
Article-I.D.: pembina.173
Posted: Thu Oct  1 18:15:31 1987
Date-Received: Wed, 7-Oct-87 01:46:46 EDT
Organization: U. of Alberta, Edmonton, AB
Lines: 26
Keywords: cut fail yuk