Re: Intercepting sets on array-like objects

2017-06-09 Thread Tab Atkins Jr.
On Fri, Jun 9, 2017 at 2:07 PM, Domenic Denicola wrote: > I'm not really sure how you're expecting to get an answer "according to > TC39." I was told by Anne in to "go back to TC39 I suppose and say you really

Re: Intercepting sets on array-like objects

2017-06-09 Thread Domenic Denicola
many other opinions from other TC39 members. From: "Tab Atkins Jr." <jackalm...@gmail.com> Sent: Jun 9, 2017 5:02 PM To: Adam Klein Cc: es-discuss Subject: Re: Intercepting sets on array-like objects On Fri, Jun 9, 2017 at 1:57 PM, Adam Klein

Re: Intercepting sets on array-like objects

2017-06-09 Thread Tab Atkins Jr.
On Fri, Jun 9, 2017 at 1:57 PM, Adam Klein wrote: > On Thu, Jun 8, 2017 at 11:32 AM, Tab Atkins Jr. > wrote: >> Note that if we don't get some variant of this functionality, these >> APIs will instead do one of: >> >> * just using Proxies (already

Re: Intercepting sets on array-like objects

2017-06-09 Thread Adam Klein
On Thu, Jun 8, 2017 at 11:32 AM, Tab Atkins Jr. wrote: > Heya! As part of designing the CSS Typed OM > , we've ended up with at > three (so far) places where we want an interface that represents a > list of values: > > *

Re: Intercepting sets on array-like objects

2017-06-08 Thread Allen Wirfs-Brock
> On Jun 8, 2017, at 11:32 AM, Tab Atkins Jr. wrote: > > Naively, this requires a Proxy, so we can intercept uses of the [] > syntax. However, we don't need all the rest of the Proxy > functionality, just this one intercept - a setter function, just for > `obj[foo]`

Re: Intercepting sets on array-like objects

2017-06-08 Thread Mark S. Miller
Interesting. At https://github.com/tvcutsem/es-lab/issues/21 Tom and I have been discussing a way to make Proxies cheaper, and Proxies that only override a few traps and let the rest default, much cheaper. On Thu, Jun 8, 2017 at 11:32 AM, Tab Atkins Jr. wrote: > Heya!

Intercepting sets on array-like objects

2017-06-08 Thread Tab Atkins Jr.
Heya! As part of designing the CSS Typed OM , we've ended up with at three (so far) places where we want an interface that represents a list of values: * CSSUnparsedValue ,