excluding features from sloppy mode

Herby Vojčík herby at mailbox.sk
Sun Dec 30 03:58:29 PST 2012



Axel Rauschmayer wrote:
> 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.

It is a valid identifier, one may actually use it. Better allow having 
nothing in there to say "I ignore".

>>> Domenic Denicola wrote:
>>>> Duplicate parameters are quite common in the following case:
>>>>
>>>> callSomething(function (_, _, whatIActuallyCareAbout) {});

Herby


More information about the es-discuss mailing list