Re: Pronouns in programming language?

ralph@inputplus.demon.co.uk (Ralph Corderoy)
11 Mar 2000 13:28:41 -0500

          From comp.compilers

Related articles
[14 earlier articles]
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)
Re: Pronouns in programming language? genew@shuswap.net (2000-03-21)
| List of all articles for this month |
From: ralph@inputplus.demon.co.uk (Ralph Corderoy)
Newsgroups: comp.compilers
Date: 11 Mar 2000 13:28:41 -0500
Organization: InputPlus Ltd.
References: 00-02-149 00-02-154
Keywords: syntax, design

Hi,


> 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.


A `mainstream' language that provides this is Python, www.python.org.


        >>> a, b, c = 3, 6, 1
        >>> a < b < c
        0
        >>> a < b > c
        1
        >>> a < b != c
        1
        >>> (a < b) != c
        0




Ralph.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.