excluding features from sloppy mode

Axel Rauschmayer axel at rauschma.de
Sun Dec 30 03:50:14 PST 2012


It would actually be nice to have that as a feature: If the variable name is `_` then it can be used multiple times. It’s a nice, self-descriptive way of saying that you don’t care about a parameter value.

On Dec 30, 2012, at 6:25 , Domenic Denicola <domenic at domenicdenicola.com> wrote:

> Sadly no, and can't quite seem to get any of the various code-searches on the internet working. It would be worth doing one of those web-crawling experiments we see from time to time, though. 
> 
>> -----Original Message-----
>> From: Brendan Eich [mailto:brendan at mozilla.com]
>> Sent: Saturday, December 29, 2012 22:10
>> To: Domenic Denicola
>> Cc: Mark S. Miller; es-discuss at mozilla.org
>> Subject: Re: excluding features from sloppy mode
>> 
>> Domenic Denicola wrote:
>>> Duplicate parameters are quite common in the following case:
>>> 
>>> callSomething(function (_, _, whatIActuallyCareAbout) {});
>> 
>> I've never seen that in JS. In ML, sure.
>> 
>> Have you any links to cite?
>> 
>> /be
>> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 

-- 
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/20121230/a2cb4e47/attachment-0001.html>


More information about the es-discuss mailing list