-
Notifications
You must be signed in to change notification settings - Fork 302
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
spread last call argument v2 #302
Conversation
It looks good to me. But I'm not sure if we need a Spreader interface given that it will always be array type, which is not difficult to compose. Do you have any good use cases for that? |
I don't have a solid use case for Spreader, it can be removed. User can expose any method to return an array. |
Also, I'd appreciate it if you could update documentation as well. |
I will remove Spreader interface and add documentation tomorrow 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. @geseq Want to take a look?
@geseq please review this PR and feel free to merge/release. This should be |
@ozanh can you post the before and after fib(35) benchmarks in cmd/bench/main.go? |
@geseq cmd/bench/main.go results
NEW
These are my benchstat comparisons using similar fibonacci functions
|
This PR is created in favor of feedback in #299
*Array, *ImmutableArray
or for custom user typesSpreader
.