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
Comparisons are enabled for TypeVariable so that we use these operators for instance to sort generic arrays, avoiding to re-implement the sort for many types.
The problem is that TypeVariable encompass types that cannot be compared, such as Field or structs.
Solution
Expose a numeric type so that users can write generic functions which will work with any numeric type.
Additional context
cf. discussion about sort function in std::lib in PR #754.
The text was updated successfully, but these errors were encountered:
Problem
Comparisons are enabled for TypeVariable so that we use these operators for instance to sort generic arrays, avoiding to re-implement the sort for many types.
The problem is that TypeVariable encompass types that cannot be compared, such as Field or structs.
Solution
Expose a numeric type so that users can write generic functions which will work with any numeric type.
Additional context
cf. discussion about sort function in std::lib in PR #754.
The text was updated successfully, but these errors were encountered: