Piles of plusses (was Re: comma

Guy Harris guy at auspex.auspex.com
Tue May 2 07:41:38 AEST 1989


>>   In FORTRAN it is STILL allowed to use variables that have not been 
>>declared.   This is a practise that should be eliminated from all serious
>>programming languages, due to the ease with which bugs can be created.
>
>It is not a matter of "being still allowed" --it is that automatic
>generation of variable is the heart and soul of Fortran.

Geez.  Sounds like it's time for a heart transplant....

>Many, many supposedly "more advanced" languages such as Pascal and C
>STILL require you to declare all variables - just like assembly
>language. Fortran and Basic, apparently alone, have the computer
>do the work for you (in the most common cases) [although C 
>will in some cases allow you to do without declaring some things
>to be int, the most common being functions].

Sorry, but I don't think computers are smart enough to "do the work for
me", given that they have a habit of blithely allowing me to write code
that attempts to refer to a variable named "foobar" but says "foobra"
instead.  I'd rather computers were *less* likely to assume I know what
I'm doing when my fingers exchange two letters, since I usually *don't*
intend to do so.

Yes, believe it or not, there are reasons why some of us find it better
to work with languages that do not automatically declare variables - we
make fewer errors that way.  Was your posting just intended to provoke
controversy, or do you really have evidence to show that people are more
productive - counting time tracking down errors caused by unproductive
typos - with languages that automatically declare objects?



More information about the Comp.unix.questions mailing list