Remix.run Logo
toolslive 9 hours ago

> No off-by-one error – By default, Fortran uses a 1-based indexing. No off-by-one errors, period.

I'm with Dijkstra on this one. https://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831...

Skeime 44 minutes ago | parent [-]

Dijkstra is right, of course. However, most math texts still use 1-based indexing. If you want to translate them into code, it's easier when the conventions match.

(Now, if you had a proposal for switching math over to 0-based indexing ...)