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

Slicing a list, when the first index is invalid for that list, could easily throw an exception instead.


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: