Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
knorl
on Nov 22, 2022
|
parent
|
context
|
favorite
| on:
Always use [closed, open) intervals
I think this advice could be better summed up into: to minimise off-by-one errors, choose a consistent strategy for describing intervals, and stick with it as much as is sensible.
erik_seaberg
on Nov 22, 2022
[–]
[closed, open) isn’t the only strategy that works, but it should be preferred because it’s so common.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: