Indexing access syntax for Lists and Maps

Ulf Zibis Ulf.Zibis at gmx.de
Wed Jul 22 10:54:30 PDT 2009


Am 22.07.2009 16:49, Joshua Bloch schrieb:

> 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;
>   

Maybe (a[i] = a[j]) = k; could result in get old value for LHS + update 
by k. (But this semantics would tend to be misunderstood).

-Ulf





More information about the coin-dev mailing list