Indexing access syntax for Lists and Maps
Joshua Bloch
jjb at google.com
Wed Jul 22 07:49:20 PDT 2009
Reinier,
On Wed, Jul 22, 2009 at 5:01 AM, Reinier Zwitserloot <
reinier at zwitserloot.com> wrote:
> Your suggestion has been discussed quite a bit, IIRC. It's not a clear
> winner by any means.
For what it's worth, I believe it *is* a clear winner. The arguments against
it confuse implementation with interface. No one is going to worry about
how its implemented. People will want the same sort of polymorphism offered
by the for-each statement. If you have:
a[i] = a[j] = k;
the behavior must not differ depending on whether a is an array or a list.
Josh
P.S. I am so sorry to bring this dead horse back to life.
More information about the coin-dev
mailing list