W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: Non-constructible constructors and Arrays

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 1 Aug 2011 22:39:51 -0700
Message-ID: <CABZUbM3ZSsfwKXsbw2KpbP5fvn1f9c18buYRZXmHxFiV81ZKpA@mail.gmail.com>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
Cc: Cameron McCormack <cam@mcc.id.au>, Jonas Sicking <jonas@sicking.cc>, Alex Russell <slightlyoff@google.com>, public-script-coord@w3.org, Brendan Eich <brendan@mozilla.com>
On 8/1/11, Allen Wirfs-Brock <allen@wirfs-brock.com> wrote:
> Why do you need to explicitly list them.  Defer that responsibility to
> ECMAScript. Just say that it is the generic mutating and non-mutating
> methods of Array.prototype for the version of ECMAScript that is supported
> by the implementation.
Have ES5 committee considered separating or tagging the methods that
mutate the array vs. those that don't, possibly even making this
discoverable so that a program could determine what the object is
capable of doing (please no try/catch on arrays).
Received on Tuesday, 2 August 2011 05:40:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:04 UTC