Indexing access for Lists and Maps considered harmful?

Neal Gafter neal at gafter.com
Wed Jun 24 15:45:25 PDT 2009


On Wed, Jun 24, 2009 at 2:21 PM, Reinier Zwitserloot <
reinier at zwitserloot.com> wrote:

> Which part of "Trying to write a GENERIC FORM OF SUCH A METHOD" was
> confusing to you, neal? Perhaps 'generic'. I meant: That can add [] support
> to *any* java.util.List or java.util.Map.
>

That's precisely what I gave the code for.  I showed the implementation of
the GENERIC index-assignment methods for *all* List and Maps.  Would you
like to see the two one-line index-get methods too?



More information about the coin-dev mailing list