||= is much needed?

Ryan Florence rpflorence at gmail.com
Tue Jun 12 19:41:42 PDT 2012


> 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.

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


More information about the es-discuss mailing list