New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring arguments #585

Closed
caub opened this Issue May 29, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@caub

caub commented May 29, 2016

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

@domenic

This comment has been minimized.

Show comment
Hide comment

@domenic domenic closed this May 29, 2016

@caub

This comment has been minimized.

Show comment
Hide comment
@caub

caub May 29, 2016

ok, thanks

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