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
Interfaces support any types #243
Comments
This was referenced Mar 6, 2024
Hey @sleepymole, what sort of type are you using right now that isn't |
For example, I want to use |
Hmmm this is interesting. This wouldn't work for |
Which one do you need, specifically? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some interfaces defined in the package support only comparable types.
sets.Set
maps.Map
lists.List
However, some implementations of these interfaces can support any type with a custom comparator.
Is it possible to change the type in the interface from
comparable
toany
? This would allowimplementations to support any type with a custom comparator without breaking backward compatibility.
The text was updated successfully, but these errors were encountered: