undefined being treated as a missing optional argument

Domenic Denicola domenic at domenicdenicola.com
Fri Apr 13 12:09:33 PDT 2012


I'm sympathetic toward `undefined` as a sentinel for "no value of the expected type," whereas `null` means "we have a value of the expected type, but that value represents 'nothing.'" Not sure if anyone else sees it that way, though, and admittedly it's based on vague hand-wavey arguments.


More information about the es-discuss mailing list