W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

Re: an idea for replacing arguments.length

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 12 Nov 2013 12:18:56 -0500
Message-ID: <52826300.1050205@mit.edu>
To: Brendan Eich <brendan@mozilla.com>, Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, es-discuss@mozilla.org
On 11/12/13 11:24 AM, Brendan Eich wrote:
> Yeah, why are *new* (this is from Web Events, not legacy) APIs doing the
> crazy. Answer: because people imitate older crazy APIs, and WebIDL
> supports this.

No.  In this case it's because the spec started out one way (with the 
sequence, iirc) but then got changed to the other way, but 
implementations had already shipped the first way, so now for compat 
they support both.

If webidl didn't allow this, they'd just use "any..." and define it all 
in prose, I assume.

-Boris
Received on Tuesday, 12 November 2013 17:19:28 UTC

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