Lahey Support
08-15-2003, 01:24 AM
A style suggestion: Don't use single-letter variable names (or
function/subroutine names). Readability we might argue, but it is
mathematically provable that one can find all occurrences of the variable XX
easier than all the occurrences of the variable X; likewise ii is easier to
find than i. And when it's someone else's code, or your own you haven't
seen in a while, finding all occurrences surely and easily is a priority.
bob baker
(yes, meaningful names are the best, and case significance helps too. basic
mechanics are also important -- as when you realize what the meaningful name
for "i" should be and would like now to change all occurrences.)
-----------------------------------------------------
To unsubscribe from the Fortran Forum, send a message
to [address removed] with the following command as
the first and only line of the message body:
unsubscribe fortran
-----------------------------------------------------
function/subroutine names). Readability we might argue, but it is
mathematically provable that one can find all occurrences of the variable XX
easier than all the occurrences of the variable X; likewise ii is easier to
find than i. And when it's someone else's code, or your own you haven't
seen in a while, finding all occurrences surely and easily is a priority.
bob baker
(yes, meaningful names are the best, and case significance helps too. basic
mechanics are also important -- as when you realize what the meaningful name
for "i" should be and would like now to change all occurrences.)
-----------------------------------------------------
To unsubscribe from the Fortran Forum, send a message
to [address removed] with the following command as
the first and only line of the message body:
unsubscribe fortran
-----------------------------------------------------