||= is much needed?
Ryan Florence
rpflorence at gmail.com
Tue Jun 12 22:42:08 PDT 2012
Sorry, I misunderstood.
CoffeeScript has ? (no ternary, so its doable there) but I haven't seen it used much.
On Jun 12, 2012, at 11:14 PM, David Herman wrote:
> 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/cf4d75af/attachment.html>
More information about the es-discuss
mailing list