Indexing access for Lists and Maps considered harmful?
Reinier Zwitserloot
reinier at zwitserloot.com
Wed Jun 24 14:21:36 PDT 2009
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.
--Reinier Zwitserloot
On 2009/24/06, at 22:08, Neal Gafter wrote:
> On Wed, Jun 24, 2009 at 1:02 PM, Reinier Zwitserloot <reinier at zwitserloot.com
> > wrote:
> That isn't a retrofit; existing implementations simply do not work
> unless you statically import a newly written method.
>
> Exactly: programmers opt-in to this form.
>
> trying to write a generic form of such a method would have to build
> it from the put and get primitives, which puts you in the same boat:
> needless and expected get calls in 99% of all assignments. So, no,
> you haven't shown this.
>
> I don't see a needless get call in the implementation I provided.
> Do you?
More information about the coin-dev
mailing list