-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
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? |
Specifically, I want to use |
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: