Re: variable names for different fortrans



Beliavsky wrote

Camel case is better supported by a compiler if it warns about
inconsistent capitalization.

Do any Fortran compilers provide a warning?

I separate words within variable names using the underscore.

That looks a bit too much like the way other languages identify constants.
For that reason I tend to avoid it in Fortran (except for constants). Not
that we should be tied to other language conventions, of course. Its just
that I regularly use 4 different languages and having some commonality
between my source code helps moving between them.

Having said that, when I write Delphi or VB I use type identifier prefixes,
but somehow this never looks right in Fortran (there aren't enough standard
types to make it justified). My only concession to this is using "i" or "n"
for all integers and "j" and "m" for some integer dummy arguments in API
procedures (if I have to do type coercion).

Paul Holden



.



Relevant Pages

  • Re: A question on Newtons Method
    ... > Jon Harrop wrote: ... >> archaic theoretical foundation, other languages aren't. ... >> forced to use old code, I see no reason to use Fortran. ... > repository there's every reason to join Fortran literacy club. ...
    (sci.math.num-analysis)
  • Re: Fortran now in the Great Language Shootout
    ... > representative of how Fortran compares to the other programming ... > languages than the current naive implementation in multiple languages. ...
    (comp.lang.fortran)
  • Re: what is the most suitable Linux platform for Programmers and software developers
    ... C, C++, Perl, Python, Lisp, and a bunch of other languages are supported ... There are FORTRAN compilers, but FORTRAN ... Look at the Linux ...
    (comp.os.linux.misc)
  • Re: Fortran bashing in the MATLAB newsgroup
    ... try to keep up with more modern languages. ... There is one sole reason for teaching Fortran ... I've got my own ideas about what modern Fortran is good for and why I ... As an example of item 1, if you're talking to C/C++ programmers, ...
    (comp.lang.fortran)
  • Re: thoughts on dynamic from a beginners perspective
    ... working engineering and heavy duty numerical codes from Fortran to ... writing such codes today. ... Interoperating between managed languages makes it trivial to ...
    (comp.programming)