by tgirod · 7y ago · 0 comments
IIRC it is along those lines :
You could define a `Lesser` interface with a method `Less(Lesser) bool`, and implement this interface on what you want to sort, but then you would have no way to assert at compile time that x and y are of the same type in `x.Less(y)`.
As I understand them, contracts allow you to assert things like this.
No comments yet.