W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

RE: removeEventListener with only one passed parameter...

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Tue, 10 Jun 2014 06:27:03 +0000
To: Anne van Kesteren <annevk@annevk.nl>, Boris Zbarsky <bzbarsky@mit.edu>
CC: public-script-coord <public-script-coord@w3.org>
Message-ID: <24bb44e117a24e8cb0e16b4aa8912ebd@BN1PR05MB325.namprd05.prod.outlook.com>
From: annevankesteren@gmail.com [mailto:annevankesteren@gmail.com] On Behalf Of Anne van Kesteren

> I would not be opposed changing the specification as we already allow null as a value there (which will then proceed to do nothing). But since most implementations already throw that seems like unwanted churn.

It would in general be preferable for undefined and missing to have the same behavior, as in most ES functions. If implementers don't mind the churn too much, this would be a nice way to reduce developer-facing edge cases on the platform.

(It seems like the takeaway here is that ? should not be used for params, and optional should be instead, to enforce normal ES semantics.)
Received on Tuesday, 10 June 2014 06:27:57 UTC

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