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

The length/count property was added after people asked for it, but it wasn't originally in the String revamp, and it provides iterators for all of the above. .count also only claims to be O(n) to discourage using it.


That was almost seven years ago now. It has been the String API twice as long as it has not been the API.




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

Search: