Sujet : Re: Which code style do you prefer the most?
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.cDate : 06. Mar 2025, 10:29:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqbptn$2triu$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 05/03/2025 18:51, Scott Lurndal wrote:
Richard Harnden <richard.nospam@gmail.invalid> writes:
On 05/03/2025 17:09, Janis Papanagnou wrote:
On 05.03.2025 17:40, bart wrote:
[...]
>
Seriously, short variable names for common things - i, j, k for loop
counters;
So, one might ask _why_ i, j, k instead of a, b, c?
Answer: Fortran IMPLICIT INTEGER
Nonsense.
Ask rather why Fortran picked i, j, k for integer-type index variables. Their use for that function in maths /long/ predates Fortran.