From patrick@dcs.shef.ac.uk  Wed Mar 29 15:18:57 2000
Received: from cedar.dcs.shef.ac.uk (cedar.dcs.shef.ac.uk [143.167.8.6])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id PAA15054
	for <prolog@swi.psy.uva.nl>; Wed, 29 Mar 2000 15:18:57 +0200 (MET DST)
Received: from wimberry.dcs.shef.ac.uk (wimberry.dcs.shef.ac.uk [143.167.8.111])
	by cedar.dcs.shef.ac.uk (8.9.3+Sun/8.9.3) with ESMTP id OAA23460
	for <prolog@swi.psy.uva.nl>; Wed, 29 Mar 2000 14:19:04 +0100 (BST)
Received: from wimberry (wimberry [143.167.8.111])
	by wimberry.dcs.shef.ac.uk (8.9.1b+Sun/8.9.1) with SMTP id OAA27751
	for <prolog@swi.psy.uva.nl>; Wed, 29 Mar 2000 14:19:02 +0100 (BST)
Message-Id: <200003291319.OAA27751@wimberry.dcs.shef.ac.uk>
Date: Wed, 29 Mar 2000 14:19:01 +0100 (BST)
From: Patrick Herring <p.herring@dcs.shef.ac.uk>
Reply-To: Patrick Herring <p.herring@dcs.shef.ac.uk>
Subject: Re:  Prolog examples
To: prolog@swi.psy.uva.nl
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.2 SunOS 5.7 sun4m sparc 
Content-Type: text
X-Sun-Text-Type: ascii

>From: "Richard A. O'Keefe" <ok@atlas.otago.ac.nz>
...
>	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

