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

That isn't an index into a string. It is an opaque indicator of position in a string. That opaque indicator of position happens to be implemented as an index into the underlying array, but it is not itself an index.


That sounds like an index to me, and the operation surely indexing.

I mean, if one has a hashmap

    hash = {"foo": 1, "bar": 2}
we say hash["foo"] is an indexing operation, and "foo" is an index. Seems the same to me.




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

Search: