Re: [heycam/webidl] Figure-out what supporting Array-subclassing implies (#345)

`[]` isn't magic; it desugars to some sort of property access just like `.foo` does.  Full-on Proxies are more expensive than normal property access because they can do a lot of surprising things, and intercept all the traps.  `[]` "proxying" like TypedArrays do is no more expensive than any other getter/setter pair, *because that's literally what it is*, just using `[]` instead of `.` for the syntax.

I feel like it needs to be reiterated, because y'all are pretending like this is something exotic and unheard of: **Typed Arrays already do [] typechecking**.  The thing I'm asking for is already present in the platform and widely-implemented, and not, to the best of my knowledge, considered a mistake.  What is making y'all so resistant to the idea of reusing that exact same mechanic?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/345#issuecomment-301211713

Received on Saturday, 13 May 2017 00:12:19 UTC