Re: [heycam/webidl] Introduce the observable array type (proxy-based) (#840)

bzbarsky commented on this pull request.



> @@ -6775,6 +6782,122 @@ The [=type name=] of a frozen array
 type is the concatenation of the type name for |T| and the string
 "<code>Array</code>".
 
+<h4 id="idl-observable-array" interface lt="ObservableArrayT|ObservableArray&lt;T&gt;">Observable array types — ObservableArray&lt;|T|&gt;</h4>
+
+An <dfn id="dfn-observable-array-type" export>observable array type</dfn> is a parametrized type
+whose values are references to objects of type |T|. The contents of the array can be mutated, both

That's fair.  I think the "whose values are" is supposed to be some sort of binding-independent more or less informative description, and then each binding (and right now we have only an ES one) describes how those map into it.

Maybe we should say that values are references to a combination of (1) a list of things of type T and (2) behavior to perform when changing the length of the list or modifying the values stored in it?  Or something like that.

Then the ES binding section can describe how that concept is reified via an ES proxy.

-- 
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/pull/840#discussion_r382234353

Received on Thursday, 20 February 2020 20:16:53 UTC