Re: Fortran 2003 keywords

From: glen herrmannsfeldt (gah_at_ugcs.caltech.edu)
Date: 12/16/03


Date: Tue, 16 Dec 2003 19:51:33 GMT

beliavsky@aol.com wrote:

> Here is a list of what I believe to be the new keywords in Fortran
> 2003, compiled from Reid's paper "The New Features of Fortran 2003",
> the online documentation for Lahey.NET, and other sources. I compiled
> the list because I want to avoid inadvertently using these words as
> variable names in new code that I write.

Does this mean that Fortran lost its "no reserved words" tradition,
or are you just trying to avoid confusing yourself?

It would seem that if you didn't know it was a keyword, it wouldn't
confuse you. Is is only confusing if you know the keyword,
and aren't sure which use is being made of the word.

There have been stories that COBOL programmers must always keep
the reserved word list near by, as COBOL has a large list, and
often they are convenient words to use to name variables.

PL/I was specifically designed not to have reserved words, as it
has a variety of features that many users will never use. It didn't
seem reasonable to expect users to know the words for such features.

C has a relatively small number of reserved language keywords, but
the names of many library routines are considered reserved, and
should not be used.

Java has about as many reserved language keywords as C. It seems that
with careful programming, class names and such do not conflict
with other uses for those names.

I always considered no reserved words a feature of Fortran.
It would be sad to see that feature gone.

-- glen



Relevant Pages

  • Re: I keep missing Hungarian naming; still smart to abandon?
    ... because those are reserved words I have to be creative and come up with a non-ideal alternative. ... a little confusing with the Pen class in the System.Drawing namespace. ... But 1) like many, I *read* code and seeing the type helps, and 2) refactoring will allow me to easily retag my Hungarian tag with another. ... Another argument is that plenty of programmers don't use Hungarian notation and it makes reading your code more difficult for no apparent reason. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Definitions - What are yours?
    ... Why would that be a surprise. ... Only lame systems, that never get new features, don't have this ... Case in point -- FASM introduced several new reserved words. ... reserved words conflict with existing HLA identifiers and HLA v1.x ...
    (alt.lang.asm)
  • Re: Date Returns Null
    ... Do you have a field or control named Date in the form? ... You are confusing ... List of reserved words in Access 2002 and Access 2003 ... List of Microsoft Jet 4.0 reserved words ...
    (microsoft.public.access.formscoding)
  • Re: FoxPro version 8
    ... There are also a number of new reserved words due to andding the new functionality and move some features for FoxTools.FLL into the product. ...
    (microsoft.public.fox.programmer.exchange)