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

domenic 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

I gave it a shot (changes uploaded now):

> whose values are references to a combination of a mutable list of objects of type _T_, as well as behavior to perform when author code modifies the contents of the list.

(and deleted the rest of the paragraph, which used to read "The contents of the array can be mutated, both by specifications and by author code, and specification code can define how it reacts to such mutations, including by rejecting them.")

-- 
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_r382238276

Received on Thursday, 20 February 2020 20:25:19 UTC