Related articles |
---|
[8 earlier articles] |
Re: Pronouns in programming language? ele@freesurf.ch (H. Ellenberger) (2000-02-28) |
Re: Pronouns in programming language? torbenm@diku.dk (2000-03-03) |
Re: Pronouns in programming language? schairer@dai.ed.ac.uk (Axel Schairer) (2000-03-03) |
Re: Pronouns in programming language? jejones@microware.com (James Jones) (2000-03-03) |
Re: Pronouns in programming language? cbrtjr@ix.netcom.com (Charles E. Bortle, Jr.) (2000-03-06) |
Re: Pronouns in programming language? cbrtjr@ix.netcom.com (Charles E. Bortle, Jr.) (2000-03-06) |
Re: Pronouns in programming language? mal@bewoner.dma.be (Lieven Marchand) (2000-03-06) |
Re: Pronouns in programming language? carles.blas@uab.es (Carles Blas Anglada) (2000-03-06) |
Re: Pronouns in programming language? zorn@microsoft.com (Ben Zorn) (2000-03-06) |
Re: Pronouns in programming language? nr@labrador.eecs.harvard.edu (2000-03-06) |
Re: Pronouns in programming language? neitzel@gaertner.de (2000-03-06) |
Re: Pronouns in programming language? joachim.durchholz@halstenbach.com.or.de (Joachim Durchholz) (2000-03-06) |
Re: Pronouns in programming language? ralph@inputplus.demon.co.uk (2000-03-11) |
[1 later articles] |
From: | Lieven Marchand <mal@bewoner.dma.be> |
Newsgroups: | comp.compilers |
Date: | 6 Mar 2000 00:23:17 -0500 |
Organization: | UUNET-NL (http://www.nl.uu.net) |
References: | 00-02-149 00-02-154 |
Keywords: | syntax, design |
pwagle@my-deja.com writes:
> I've also heard that some languages have experimented with permitting
> n-ary comparisons (eg, "1 < x < 10" instead of "x > 1 && x < 10", but
> they always conclude that its a mistake. Hard to understand code gets
> produced, and I think there's a parsing problem, but I forget what.
Common Lisp does exactly that.
Your example would become:
(< 1 x 10)
As usual, fully parenthesised prefix notation kills the parsing problem.
About the only catch for beginners are the values of
(= 1) and (/= 1).
Return to the
comp.compilers page.
Search the
comp.compilers archives again.