||= is much needed?

David Herman dherman at mozilla.com
Tue Jun 12 22:14:52 PDT 2012


On Jun 12, 2012, at 7:41 PM, Ryan Florence wrote:

>> I'm skeptical. You don't foresee
>> 
>>    f(obj.x ?? defVal)
>> 
>> happening a lot? I do.
> 
> I can't speak for the world but I've never seen anybody do f(val ||= defVal) in Ruby or CoffeeScript.

But I'm not talking about ||=. I'm talking about the analog of ||.

Dave

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


More information about the es-discuss mailing list