||= is much needed?

Tom Ellis tellishtc at gmail.com
Tue Jun 12 11:31:27 PDT 2012


I like the sound of ?= too. 

var a;

//later on

a ?= 15;

It goes with all the other operators that are out there too (!=, =, ==, === etc).

Tom

On 12 Jun 2012, at 19:04, Brendan Eich wrote:

> Brendan Eich wrote:
>> Is this (A ? B) ? C : D or A ? (B ? C) : D. We can disambiguate in the formal grammar but readers may rebel. 
> 
> Or A ? (B ? C : D), of course.
> 
> Just say no to lone ? as new operator. I'm warming up to ?= though!
> 
> /be
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss



More information about the es-discuss mailing list