Operators ||= and &&=

Neil Mix nmix at pandora.com
Wed May 6 15:13:52 PDT 2009


On May 6, 2009, at 4:53 PM, Ash Berlin wrote:

>>> You could make a case for adding a ?? operator for symmetry.  
>>> Example of usage:
>>>
>>> some_func(a, b ?? "c" );
>>
>> Roger that, given ??= it would be strange to leave out ??.
>>
>> I'm still trying to leave out both ;-).
>>
>> /be
>
> I'm quite partial to an undefined-or operator :)

Wouldn't it make more sense to have ||| and &&& operators?  We're  
really just discussing a different form of boolean logic here, why not  
go-the-distance and draw parallels to ===.  (I think I'm proving  
Brendan's point :P)


More information about the es-discuss mailing list