Subject: Re: Prolog examples

From: Patrick Herring <[email-masked]>
Date: Wed, 29 Mar 2000 14:19:01 +0100 (BST)

>From: "Richard A. O'Keefe" <[email-masked]>
...
>	4.  Write a Prolog predicate that will find the route from one
>	location to another.
>
>	intersect( smith, duncan ).
>	intersect( nashville, asheville ).
>	intersect( asheville, moses ).
>	route ( smith, moses, X )
>	X = [ smith, asheville, moses ]
>	route( smith, smith, X ).
>	X = [ smith ]
>	route( moses, smith, X )
>	no
>
>Please use a less sickening layout style.
>Putting spaces after opening brackets or before closing
>brackets isn't _completely_ unforgiveable, but you really
>don't want to know about the penance required to get forgiveness.

Hmm, what is it then? That's the style I use all the time to great 
effect in visual clarity, IHMO, and it rarely makes me sick <g>.

-- 
Patrick Herring, at work
http://www.dcs.shef.ac.uk/people/P.Herring