||= is much needed?

Aymeric Vitte vitteaymeric at gmail.com
Thu Jun 14 16:46:44 PDT 2012

Just to be clear I am talking about the use of null in the scope of the 
current discussion (ie operators/default) only

Le 15/06/2012 01:37, Aymeric Vitte a écrit :
> "Before"...
> I put Rick's answer below too, in strict/correct code it can be used 
> but what examples (except yours) ?
> Maybe I missed it, never saw the use of null since a long time, but I 
> can be wrong
> The difference is known, do you think it does worth the complexity for 
> the operators we are talking about ? w3c is forced to define something 
> as null, would look strange and not serious to define it as undefined 
> in specs, but in reality this is let to the appreciation of developers 
> (who usually don't care), and for comparisons/default, null will, I 
> think, never be used, then it should probably behave the same as undefined
> Le 15/06/2012 01:12, Tab Atkins Jr. a écrit :
>> On Thu, Jun 14, 2012 at 4:06 PM, Aymeric Vitte<vitteaymeric at gmail.com>  wrote:
>>> Nobody (except w3c) is using null, or when someone is using it, it is the
>>> same way as undefined, and it is not explicit (ie a||b or a==b, not
>>> a===null), I remind some old code where we could see the use of null but can
>>> not find a single example of recent code, then the new operator(s) should
>>> treat it the same way I believe, the problem is 0 here
>> Your experience isn't necessarily universal.  I've used null before to
>> mean something different than undefined.
>> ~TJ
> There doesn't need to be an explicit check for undefined - anytime 
> null is used as an intentional place holder and its value would be 
>  _otherwise_ undefined counts as well.
> And for your information, I am not w3c and I use null frequently (the 
> same way w3c uses it).
> -- 
> jCore
> Email :avitte at jcore.fr
> Web :www.jcore.fr
> Webble :www.webble.it
> Extract Widget Mobile :www.extractwidget.com
> BlimpMe! :www.blimpme.com

Email :  avitte at jcore.fr
Web :    www.jcore.fr
Webble : www.webble.it
Extract Widget Mobile : www.extractwidget.com
BlimpMe! : www.blimpme.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120615/2989c8fa/attachment-0001.html>

More information about the es-discuss mailing list