Array#sort() implementations not interoperable

Andreas Rossberg rossberg at google.com
Fri Jun 14 06:43:03 PDT 2013


On 14 June 2013 14:11, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
> On Fri, Jun 14, 2013 at 4:30 AM, Andreas Rossberg <rossberg at google.com> wrote:
>> 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.

Perhaps, but useful enough to justify burdening 'sort' with extra
complexity and cost?

Let's talk about that once the use of contracts has become wide-spread
in JavaScript... ;)

/Andreas


More information about the es-discuss mailing list