Transparency

John Nilsson john at milsson.nu
Tue Jul 13 14:58:32 PDT 2010


On Tue, Jul 13, 2010 at 11:08 PM, Nathan Bryant
<nathan.bryant at linkshare.com> wrote:
>        void set(int i, T t) { arr[i] = t; } // Either causes autoboxing
> unbeknownst to the sorry fool who wrote new Foo<int>, or becomes illegal

How about just erasing T[] to Object and let API-developers worry
about picking an array implementation?

BR,
John


More information about the lambda-dev mailing list