Hacker News new | past | comments | ask | show | jobs | submit login

and then you forget range(1, 10) is a half-open interval because it's meant to be used with `length` as in `range(0, foo.length)`



That part has always annoyed me.

But then Python beat me into submission with its seductive collection comprehension... Now I see it as a standard convention, like indexing should start with 0.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: