Re: Pronouns in programming language?

rweaver@ix.netcom.com (Richard Weaver)
28 Feb 2000 02:57:49 -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)
Re: Pronouns in programming language? rkrayhawk@aol.com (2000-02-28)
Re: Pronouns in programming language? ele@freesurf.ch (H. Ellenberger) (2000-02-28)
[13 later articles]
| List of all articles for this month |
From: rweaver@ix.netcom.com (Richard Weaver)
Newsgroups: comp.compilers
Date: 28 Feb 2000 02:57:49 -0500
Organization: MindSpring Enterprises
References: 00-02-149
Keywords: syntax, design, comment

John Fremlin <vii@altern.org> writes:
>
>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 }
>... [snip}


There was an assembler (or modification to the IBM assembler? due to
Knuth?) for the IBM 650 where, as best I can recall, "points" (in the
sense of "here") could be defined. In the context of this suggestion,
a "point" said any "it" following, until "point" is redefined, is a
reference to this point. After a redefinition any following "it" was
a reference to the new definition. Points were numbered (a max of
10?). The motivation would have been to save space in the symbol
table on a machine with a memory of 10,000 bytes (I think that was the
common configuration).


For more current languages, the IF examples in the subject post look a
lot like case statments/constructs.


dick w
[Knuth used this in his MIX assembler, and it showed up in the PDP-11
Unix assembler as well. -John]


Post a followup to this message

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