||= is much needed?

Brendan Eich brendan at mozilla.com
Fri Jun 15 15:00:50 PDT 2012

satyr wrote:
> On Sat, Jun 16, 2012 at 4:33 AM, David Herman <dherman at mozilla.com 
> <mailto:dherman at mozilla.com>> wrote:
>     As for null, I can see how there's confusion about whether to use
>     null vs undefined, and so I can see why CoffeeScript would just
>     try to blur the distinction between them.
> Not just for blurring. Rejecting `null` is essential for 
> CoffeeScript's "existence" due to `?.`, the soak/safe access operator.

Can you give a real-world example where null rather than undefined is 
soaked up? I'm guessing DOM but guessing is bad (cf. Sherlock Holmes).


More information about the es-discuss mailing list