||= is much needed?

Axel Rauschmayer axel at rauschma.de
Tue Jun 12 22:59:49 PDT 2012

I think it’d be handy when you are taking apart objects (e.g. JSON data). However, you do have the option of merging in default values (e.g. via http://documentcloud.github.com/underscore/#defaults ).

On Jun 13, 2012, at 7:52 , Brendan Eich wrote:

> People don't default on the caller side (at the callsite) much, in my experience. Dave may be seeing other sources, but it's extremely rare in my experience to see
>  foo(arg1 || callers_idea_of_default_arg1_value);

Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

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

More information about the es-discuss mailing list