Default operator strawman - ||| rather than ??

Domenic Denicola domenic at domenicdenicola.com
Thu Jun 14 12:40:38 PDT 2012


On Jun 14, 2012, at 14:03, "Rick Waldron" <waldron.rick at gmail.com<mailto:waldron.rick at gmail.com>> wrote:


On Thu, Jun 14, 2012 at 11:58 AM, Domenic Denicola <domenic at domenicdenicola.com<mailto:domenic at domenicdenicola.com>> wrote:
In our experience writing large apps, the distinction is useful. Undefined means I forgot to do something (e.g. set a property or pass an argument); null means I tried to get something but it didn't exist.

null is intentional, its presence is explicit -- doesn't this imply that something _does_ exist? (...and its value is null)

eg. https://gist.github.com/2926029


Rick


Right, I wasn't exactly clear—I meant more the case of e.g. "nothing exists in the database, so I gave you back a null" or even "there wasn't any error, so I called you back with a null as the first param."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120614/5d35d875/attachment.html>


More information about the es-discuss mailing list