99 ms·
Fun fact, this is also the reason why 'i' is commonly used as a name for the loop counter variable.
by adamnemecek 13y ago
Fun fact, this is also the reason why 'i' is commonly used as a name for the loop counter variable.
- BlackDeath3 13y agoSource?
- adamnemecek 13y agoI mean google around. It's not "it's definitely from Fortran" more like "it has been repeatedly suggested that...".
- tsm 13y agoWhat about as an abbreviation for "index"?
- kps 13y agoNo, it's the other way around; i, j, ... have a long history in mathematics as indices for matrices, summations, etc., with m, n likewise being traditional for the dimensions of a matrix. In early FORTRAN, integers were present primarily to be used as array subscripts. The INteger mnemonic doesn't appear in any of the early papers or manuals. As a side note, on the topic of features that would currently seem ‘strange’, some early languages that were intended to be programmed using teletypewriters rather than FORTRAN's Hollerith cards used half-line motions to write array subscripts as actual subscripts.