You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to use a circular buffer with a custom struct. Nevertheless, I found myself in a problem as the circular buffer interface requires a comparable type. My struct is not comparable so I can't use this data structure at all.
Describe the solution you'd like
I would like that we consider replacing comparable with any or similar to avoid these kind of issues. AFAIK, we don't need comparable for a buffer ring case. At least not for the main functionalities for this data structure.
Describe alternatives you've considered
Right now, the only alternative is using the GoDS legacy lib as it uses the interface{} type.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I want to use a circular buffer with a custom struct. Nevertheless, I found myself in a problem as the circular buffer interface requires a
comparable
type. My struct is not comparable so I can't use this data structure at all.Describe the solution you'd like
I would like that we consider replacing
comparable
withany
or similar to avoid these kind of issues. AFAIK, we don't needcomparable
for a buffer ring case. At least not for the main functionalities for this data structure.Describe alternatives you've considered
Right now, the only alternative is using the
GoDS
legacy lib as it uses theinterface{}
type.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: