News for hackers. Stuff that matters.
Re:Again on 0-based vs. 1-based indexing by user-the-name on Wednesday January 20, 2021 @07:50AM (#25845799)
How about an empty range in type uint8_t?

The fact of the matter is, for a type that can hold N distinct values, there are N + 1 different possible interval lengths. You can not represent intervals over a fixed-width type in that same type.

Re:Again on 0-based vs. 1-based indexing by stabbles on Wednesday January 20, 2021 @08:05AM (#25845927)
Exactly, there's no silver bullet for ranges