News for hackers. Stuff that matters.
Re:Again on 0-based vs. 1-based indexing by TheRealPomax on Wednesday January 20, 2021 @11:11AM (#25848128)
That... makes no sense? Whether you start counting a list at 0 or 1, if your language of choice supports [x,x) notation, that syntax will effect an empty interval, and [x,x+1) will effect a single cell, no matter whether your list indexes the first element as 0, or 1. The only difference is which cell [x,x+1) refers to, which is the part that keeps sparking the controversy.

There are no comments on this comment yet.