-
Notifications
You must be signed in to change notification settings - Fork 25
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
Rewrite collections package as generic functions #79
Conversation
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.
LGTM. Love the new tests too 👍
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.
Ah, one thought: I see you're using ~
. Perhaps we should add some tests that use not only raw types (e.g., int
) but custom type definitions (e.g., type Foo int
) to ensure the ~
is having the intended effect?
Ok, tests are now passing, and I added a test case to verify that using a custom type works. This is ready for a final review. |
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.
LGTM!
Thanks, will merge and release. |
This also bumps the Go version to 1.18.
Note that this would be a backwards incompatible change due to Go v1.18 now being required.
Unfortunately there's a failing test that I haven't had time to resolve.Solved: tests are now passing.