Related articles |
---|
[7 earlier articles] |
Re: problems with identifiers and keywords... wyrmwif@tsoft.org (SM Ryan) (2004-11-07) |
Re: problems with identifiers and keywords... vbdis@aol.com (2004-11-07) |
Re: problems with identifiers and keywords... cfc@shell01.TheWorld.com (Chris F Clark) (2004-11-14) |
Re: problems with identifiers and keywords... genew@mail.ocis.net (Gene Wirchenko) (2004-11-14) |
Re: problems with identifiers and keywords... gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-11-17) |
Re: problems with identifiers and keywords... gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-11-17) |
Re: problems with identifiers and keywords... lkrupp@pssw.NOSPAM.com.INVALID (Louis Krupp) (2004-11-17) |
Re: problems with identifiers and keywords... cfc@shell01.TheWorld.com (Chris F Clark) (2004-11-17) |
Re: problems with identifiers and keywords... nmm1@cus.cam.ac.uk (2004-11-19) |
Re: problems with identifiers and keywords... gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-11-19) |
Re: problems with identifiers and keywords... gracjan@acchsh.nospam.com (Gracjan Polak) (2004-11-19) |
Re: problems with identifiers and keywords... Martin.Ward@durham.ac.uk (Martin Ward) (2004-11-19) |
Re: problems with identifiers and keywords... Peter_Flass@Yahoo.com (Peter Flass) (2004-11-20) |
[7 later articles] |
From: | Louis Krupp <lkrupp@pssw.NOSPAM.com.INVALID> |
Newsgroups: | comp.compilers |
Date: | 17 Nov 2004 11:37:29 -0500 |
Organization: | Posted via Supernews, http://www.supernews.com |
References: | 04-10-148 04-10-170 04-10-174 04-11-008 04-11-011 |
Keywords: | syntax, design |
Posted-Date: | 17 Nov 2004 11:37:29 EST |
glen herrmannsfeldt wrote:
<snip>
> I am not quite sure about Fortran, but it seems no reserved words was
> intentional in PL/I. PL/I has a lot of keywords, and adopted some
> features from COBOL, a language known to have a very large list of
> reserved words, many of which could be convenient to use as
> identifiers. One goal of PL/I was that you shouldn't have to learn
> the whole language to use it, and so you also shouldn't have to learn
> the keywords for parts you don't use.
<snip>
My objection to languages that allow keywords as identifiers (not that
I've written any FORTRAN in a long time or a lot of PL/I at any time):
I would think that a program that used keywords as identifiers would
make sense to a programmer who didn't use the features that required
those keywords but would look strange to a programmer who used those
features regularly and therefore was not in the habit of using those
keywords as identifiers (if that makes sense). The author of the
program might even come to find the program awkward after learning
more of the language and recognizing more of the keywords as keywords.
Louis Krupp
Return to the
comp.compilers page.
Search the
comp.compilers archives again.