Array#sort() implementations not interoperable

Sam Tobin-Hochstadt samth at ccs.neu.edu
Fri Jun 14 05:11:29 PDT 2013


On Fri, Jun 14, 2013 at 4:30 AM, Andreas Rossberg <rossberg at google.com> wrote:
> On 14 June 2013 10:17, David Bruant <bruant.d at gmail.com> wrote:
>> I'm suggesting to make the [[Get]], [[Put]] and [[Delete]] sequence less
>> implementation-dependent which means at least to bound them to the maximum
>> of what is needed. That's a gain especially in the presence of getter/setter
>> and proxies (where an impl-dependent sequence can lead to more calls than
>> necessary).
>
> I don't see much of a use case for an array with getters, let alone
> sorting a proxy. So the practical gain seems negligible.

Sorting an array with a contract [1] seems pretty useful to me.

[1] https://github.com/disnet/contracts.js

Sam


More information about the es-discuss mailing list