🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #456

Re: What I'd really like to see in an if-statement...

#456
From: Preston Briggs
Date: Fri, 11 Aug 1989 02:27
20 lines
1184 bytes
In article <8606@batcomputer.tn.cornell.edu> 
   lacey@tcgould.tn.cornell.edu (John Lacey) writes:
>In article <516@brazos.Rice.edu>  (3383 of comp.lang.misc)
>    preston@titan.rice.edu (Preston Briggs) writes:
>} but
>} 	a<b<c    doesn't mean     (a < b) < c
>} 			   or      a < (b < c)
>
>Just because the expression doesn't commute or associate doesn't mean
>it is not a valid relation.

But if < doesn't associate, then it doesn't make sense to write a<b<c.

In C, < is left-associative.  You can write a<b<c (but the meaning
is perhaps suprising).

In Pascal, < doesn't associate.  You can't write a<b<c.

Preston Briggs
preston@titan.rice.edu
Technical Details
Message-ID: <545@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rice!titan!preston
References: <8577@batcomputer.tn.cornell.edu> <14251@haddock.ima.isc.com> <516@brazos.Rice.edu> <8606@batcomputer.tn.cornell.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rice!titan!preston
From: preston@titan.rice.edu (Preston Briggs)
Newsgroups: comp.lang.misc
Subject: Re: What I'd really like to see in an if-statement...
Message-ID: <545@brazos.Rice.edu>
Date: 11 Aug 89 02:27:55 GMT
References: <8577@batcomputer.tn.cornell.edu> <14251@haddock.ima.isc.com> <516@brazos.Rice.edu> <8606@batcomputer.tn.cornell.edu>
Sender: root@rice.edu
Reply-To: preston@titan.rice.edu (Preston Briggs)
Organization: Rice University, Houston
Lines: 20