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
QQ.step can accept array of funtions #4
Comments
I am pretty adamant about not mixing variadic and array signatures because of the ambiguity of a single array argument. I shy in general from variadic functions because it’s such a pain to spread an array into arguments. Could I interest you in this shorthand instead? [f1, f2].reduce(Q.when, Q.resolve()) |
But in case of If you so adamant about such polymorphism for functions, maybe you can add another function for this purposes ( |
@veged Good point about the brevity of the shorthand. I would entertain changing the signature of All thoughts welcome. This library belongs to the people using it and I have very little agenda for it. |
If first argument of
QQ.step
is Array (or not Function) it was be useful use it instead allarguments
.Now I should write
QQ.step.apply(Q, [ f1, f2 ])
instead ofQQ.step([ f1, f2 ])
.Also
Q.all
can opposite accept multiply arguments in conjunction with Array:Q.all([ ... ])
~Q.all(..., ..., ...)
.The text was updated successfully, but these errors were encountered: