On Mon, Oct 6, 2014 at 1:11 PM, John Myles White <johnmyleswh...@gmail.com> wrote:
> FWIW, I actually think strings shouldn't define indexing at all: they > should only define iteration. > There's a pretty strong argument to be made for that. The fact that you can pretend that indices = characters if you happen to only care about ASCII strings is the main reason we allowed indexing into strings at all. Of course, maybe one shouldn't encourage writing code that only works for ASCII strings, but it's a common case.