News for hackers. Stuff that matters.
Re:Again on 0-based vs. 1-based indexing by aden1ne on Wednesday January 20, 2021 @09:46AM (#25847004)
I've always found the English language to simply be lacking here. In for instance Dutch there is a very clear distinction between half-open and closed intervals: "x tot y" is always half-open, "x tot en met y" is always closed. Whereas in English, "x until y" can mean both things, with all the resulting misunderstandings.
Re:Again on 0-based vs. 1-based indexing by Jtsummers on Wednesday January 20, 2021 @11:20AM (#25848231)
While it isn't used often in conversational English, Common Lisp has a nice way of describing different ranges:

  for x from 0 to 10    ;; closed, [0,10]
  for y from 0 below 10 ;; (half-open, [0,10)
"below" is unambiguous, as 10 is not below 10.
Re:Again on 0-based vs. 1-based indexing by Izkata on Wednesday January 20, 2021 @09:56AM (#25847109)
We have "to" and "through" in English to distinguish them. Unfortunately "to" isn't always as strict as I'd like...

"Until" I'd think of as being the strict "to", except something about it feels off like it couldn't just be dropped in every place to/through can be used.