Dijkstra defended zero indexing with an empty sequence: include the start, exclu...
Chris Pirillo @ChrisPirillo@mastodon.social
Dijkstra defended zero indexing with an empty sequence: include the start, exclude the end, and length stays end minus start. His 1982 note explains the argument without establishing who invented the convention. https://lockergnome.com/dijkstra-zero-indexing-empty-sequence-ewd831/