Indexing access for Lists and Maps considered harmful?
Neal Gafter
neal at gafter.com
Wed Jun 24 13:08:27 PDT 2009
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