Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bigDinosaur
on Nov 22, 2022
|
parent
|
context
|
favorite
| on:
Always use [closed, open) intervals
Otherwise would result in surprises like range(10) giving 11 values, violating convention. I admit I usually have to pause to remember whether it's inclusive of the upper bound or not.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: