Wouldn't this be nice?
mthornton at optrak.co.uk
Wed Nov 11 08:54:37 PST 2009
Joshua Bloch wrote:
> 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.
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.
More information about the coin-dev