Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
macintux
on Aug 27, 2023
|
parent
|
context
|
favorite
| on:
Python Type Hints – *args and **kwargs (2021)
Slicing a list, when the first index is invalid for that list, could easily throw an exception instead.
zoomablemind
on Aug 27, 2023
[–]
This should signal an explicit error, which invalid index is indeed. If user believes for some reason the invalid indexing is ok, then it could be caught and handled. No ambiguity.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: