Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Exactly, there's no silver bullet for ranges




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: