Shamelessly stolen from Reddit. No source in the original post.
I’ve heard a lot of arguments in favour of starting at 1 and as a “start at 0” person, I’m starting to question my beliefs and am as confused as I was at 3 am when I saw my cat piss from inside her litter box onto the parquet flooring and then slip on it.
Indexing by zero has a huge positive impact on the correctness of complex operations like joining intervals, that nobody trusts themselves to write anyway and always pack behind a well-verified library.
But I think the reason we have it is because C maps it almost immediately into memory offsets.
True programming chads don’t index at all, they just bind functions to the list monad.
Not indexing at zero seems like a waste of a perfectly good integer.
Yea ther is a big difference between indexing and counting
Element 0 is the first element of the list
Like any other convention, it’s not really a big deal either way. Fortran gets along just fine with 1-indexing.
Pascal programmers are confused.
deleted by creator
deleted by creator