Wouldn't this be nice?
Mark Thornton
mthornton at optrak.co.uk
Wed Nov 11 08:54:37 PST 2009
Joshua Bloch wrote:
> Paulo,
>
> I have a hard time intuiting the semantics by just looking a the statement.
> What I'm really sorry that I didn't put into the original statement is:
>
> for (char c : myString)
>
> which would also work on other CharSequences. Oh well, maybe someday.
>
>
and/or perhaps
for (int codePoint: myString)
I know most programmers are still ignoring the difference between
characters and codePoints, but I can't help feeling a bit dirty doing so.
Mark Thornton
More information about the coin-dev
mailing list