Re: [heycam/webidl] Link to ES for "array index" (#427)

TimothyGu commented on this pull request.



>  
-    The name of each property that appears to exist due to an object supporting indexed properties
-    is an <dfn id="dfn-array-index-property-name" export>array index property name</dfn>,
-    which is a property name |P| for which the following algorithm returns true:
+    To determine if a property name |P| <dfn lt="is an array index|is not an array index"
+    oldids="dfn-array-index-property-name">is an [=array index=]</dfn>, the following algorithm is

Not really, array indices are strings according to [ECMAScript](https://tc39.github.io/ecma262/#array-index).

While the old name *is* more obvious, I'm explicitly moving the *definition* of that term out of IDL, as I do not want to provide a competing definition of what's essencially the same thing under a different name. Instead IDL should only offering an algorithm to verify that an ECMAScript value is indeed an array index, as ES does not provide that, not in algorithmic form at least.

-- 
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/427#discussion_r135205656

Received on Friday, 25 August 2017 08:15:09 UTC