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
As i can see, functions such us IndexOf, Min, Max (all from find.go), Some, Contains (all from intersect.go). Has they have the following semantics:
funcX[TsomeConstraint](slice []T, args...T)
I think this is an insufficiently effective use of generics because of we can cover underling type too and users who use the library will not have to cast user types.
As i can see, functions such us
IndexOf
,Min
,Max
(all fromfind.go
),Some
,Contains
(all fromintersect.go
). Has they have the following semantics:I think this is an insufficiently effective use of generics because of we can cover underling type too and users who use the library will not have to cast user types.
For example Contains method will be repesented as
instead of
According to my estimates, this is not a breaking change, so we can just improve the lives of library users.
The text was updated successfully, but these errors were encountered: