Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Compare method which forwards calls to Cmp (#346)
Given the interface definition type Ordered[T any] interface { Compare(T) int } And the type constraint T Ordered[T], make decimal.Decimal satisfy this constraint, so that generic code written against T Ordered[T] can work with decimal values as smoothly as it works with time.Time values today. Fixes: #345
- Loading branch information