Pronouns in programming language?

John Fremlin <vii@altern.org>
27 Feb 2000 02:53:06 -0500

          From comp.compilers

Related articles
Pronouns in programming language? vii@altern.org (John Fremlin) (2000-02-27)
Re: Pronouns in programming language? schairer@dai.ed.ac.uk (Axel Schairer) (2000-02-28)
Re: Pronouns in programming language? rweaver@ix.netcom.com (2000-02-28)
Re: Pronouns in programming language? pwagle@my-deja.com (2000-02-28)
Re: Pronouns in programming language? jjones@cs.uiuc.edu (2000-02-28)
Re: Pronouns in programming language? mal@bewoner.dma.be (Lieven Marchand) (2000-02-28)
Re: Pronouns in programming language? hamish.a@virgin.net (Hamish Atkinson) (2000-02-28)
[15 later articles]
| List of all articles for this month |
From: John Fremlin <vii@altern.org>
Newsgroups: comp.compilers
Date: 27 Feb 2000 02:53:06 -0500
Organization: Compilers Central
Keywords: design, question, comment

Has any programming language/compiler implemented pronoun like
constructs? For example:


                if variable_with_long_name == '2 ,
{ do this; }
if it == '3 , # equivalent to: variable_with_long_name == '3
{ do that }




Alternatively or in addition, elision (automatic scope changing),
for example:


if variable_with_long_name == '2 ,
{ do this; }
if == '3 , # equivalent to: variable_with_long_name == '3
{ do that }


Would it be a good idea? I don't think that it'd be too difficult to
implement in my project . . .


[I can think of some examples. Lisp LET (typically implemented as an
anonymous procedure) permits you to assign names to expressions for very
limited scopes. Cobol lets you elide comparison operands, something like
IF FOO-BAR LESS THAN 12 OR GREATER THAN 42 THEN ... -John]


Post a followup to this message

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