Y
Hacker News
new
|
ask
|
show
|
jobs
by
astrange
983 days ago
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.
1 comments
b3morales
982 days ago
That was almost seven years ago now. It has been the String API twice as long as it has
not
been the API.
link