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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to