2 ms·
I read this twice and still couldn't make heads or tails of it. Maybe because I learned programming in BASIC, and some variants of BASIC support 'Option Base
by eesmith 6y ago
I read this twice and still couldn't make heads or tails of it.
Maybe because I learned programming in BASIC, and some variants of BASIC support 'Option Base (0|1)'?
Or had to port 1-based Algol code to 0-based Python?
Algol, of course, is usually compiled to machine code while CPython, like Lua, compiles to bytecode. And Algol allowed you to specify your own base, with "LWB" and "UPB" as a way to get the lower and upper bounds without needing to know the index.
Similarly, perl back when I used it let you set '$[' to change the array base index.
And there's Dijkstra's famous essay on the topic, at https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/E...
I don't know how to characterize all of those languages and people along the simple axis of "borders" and "no-borders", and the author didn't explain how that axis works. I also read https://github.com/a327ex/blog/issues/66 https://github.com/a327ex/blog/issues/66 and still am unenlightened.