Indexing access syntax for Lists and Maps

Greg Brown gkbrown at mac.com
Mon Jul 20 14:39:59 PDT 2009


I'd like to separate the previous discussion into two threads, so the  
conversation regarding the merits of collection literals doesn't  
completely overshadow the other topic:

> 1) Indexing access syntax for Lists and Maps
>
> It would be nice to see this feature extended to any class, not just
> List and Map. Groovy supports this by mapping the index operator to
> getAt() and putAt() - a similar approach (possibly one that maps to
> get(int)/set(int, E) and get(K)/put(K, V)) would be more flexible and
> would still work for List and Map.


How viable might this be?





More information about the coin-dev mailing list