RE: Promises "if not omitted" language

From: Boris Zbarsky [bzbarsky@MIT.EDU]

> There's a third choice: undefined and both null trigger default behavior, functions get called, anything else is disallowed.

> Or is that what you mean by the "antipattern that DOM specs in particular have perpetuated"?

Yes, exactly.

(As another example: compare `["a", "b"].join(null)` vs. `["a", "b"].join(undefined)`.)


Received on Monday, 22 July 2013 16:45:26 UTC