UInt8ClampedArray Bitwise operators?

Caitlin Potter caitpotter88 at gmail.com
Wed Aug 12 17:51:50 UTC 2015


> ES2015 already has element accessor overloading with proxies, right?
> It's everything else that's missing.

Proxies enforce invariants, which is problematic for this use case because it’s A) expensive, and B) also restricts you from “lying” about the actual properties which exist on the element.

I recall from an old presentation on Value Types that overloading `[]` was off limits because those invariants needed to keep working.


> On Aug 12, 2015, at 1:44 PM, Daniel Ehrenberg <dehrenberg at chromium.org> wrote:
> 
> On Wed, Aug 12, 2015 at 4:50 AM, Caitlin Potter <caitpotter88 at gmail.com> wrote:
>> Operator overloading or value types might make it look a lot prettier some day (though iirc element assessor overloading was off limits), but you could get pretty far by baking it into a compile-to-js language.
> 
> ES2015 already has element accessor overloading with proxies, right?
> It's everything else that's missing.



More information about the es-discuss mailing list