-
Notifications
You must be signed in to change notification settings - Fork 425
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
Support emitting multiple arguments #13
Comments
Nice! Though I might have an interesting thought that changes your mind about the multiple arguments thing from @bevacqua: |
hmm.. yep, forgot about that |
FWIW, I would use support for multiple arguments before using |
You might be surprised how convenient
|
I'm absolutely agree. Working (emitting) only one argument is cool and very clean. So yea, I can agree to remove that extra second argument from #19, but we should mention that in the docs that |
You can easily do both.
|
Yea. Closing per f4c60f4 |
Just like
.emit('foo', 1, 2, 3)
. Initially thought for rest + spread but it adds around 50 bytes.So I think it may be enough to have explicitly defined 3-4 arguments
That adds 4 bytes.
Some faster implementations than node core's uses this tactic, but up to 6-8 args
The text was updated successfully, but these errors were encountered: