Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Mikhail_K
on Jan 20, 2021
|
parent
|
context
|
favorite
| on:
Again on 0-based vs. 1-based indexing
> 0-based indexing with closed intervals is better for slicing.
Given how confused and inconsistent Python slicing syntax is, it obviously isn't.
ModernMech
on Jan 20, 2021
[–]
Also given how Matlab is essentially slicing-oriented programming and is 1-based, I've always found it perfectly intuitive.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Given how confused and inconsistent Python slicing syntax is, it obviously isn't.