Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upIgnoring arguments #585
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
domenic
closed this
May 29, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
caub
commented
May 29, 2016
|
ok, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
caub commentedMay 29, 2016
•
edited
Similarly to:
var [,x,,y] = [1,2,3,4,5,6];I think it could be interesting to let a field empty in function arguments
[1,2,3,4].map( (,i) => i ),Array.from({length:10}, (,i) => i )function test(a,,b) { }(but that would alter the current parsing, that doesn't allow it)
Currently I often use
_as a way to mark ignored fields, but when there are more than 1 you need another identifier. A standard way would be interesting rather