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

There are two things to know. 'aa' < 'z' , which I think is expected. And 'z'+1 == 'aa', which is debatable, but not far-fetched.

As far language blunders go, I don't see this as unforgivable, especially since it only appears when you're treating a string as an integer (a dumb idea, anyway) from within the for construct.



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

Search: