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

RE: Removing the concept of "optional any"

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Wed, 19 Feb 2014 22:23:46 +0000
To: Jonas Sicking <jonas@sicking.cc>
CC: Boris Zbarsky <bzbarsky@mit.edu>, "public-script-coord@w3.org" <public-script-coord@w3.org>, "Mark S. Miller" <erights@google.com>
Message-ID: <22a02ff28a0b48c0aca2b78f6caf3847@BN1PR05MB325.namprd05.prod.outlook.com>
From: Jonas Sicking <jonas@sicking.cc>

>> In that case, if I were a JS programmer trying to post a message of `undefined`, I would do so by doing `postMessage()`, not `postMessage(undefined)`.

> That seems exceedingly awkward. Consider

I wasn't advocating branching logic at all. I was considering the specific case wherein I wanted to post the message consisting of the value `undefined`, not a generic case where someone could post any message.
Received on Wednesday, 19 February 2014 22:24:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC