Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
astrange
· 3y ago · 0 comments
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.
Comments
[–]
b3morales
3y ago
That was almost seven years ago now. It has been the String API twice as long as it has
not
been the API.
Better HN