4 ms·
It does indeed require PartialOrd and the author has already fixed the mistake. But I wonder why PartialOrd is implemented for ().
by LukaD 6y ago
It does indeed require PartialOrd and the author has already fixed the mistake. But I wonder why PartialOrd is implemented for ().
- GlitchMr 6y agoThis is because tuples like `(T, U)` implement `PartialOrd` - this is actually useful. If you are going to implement `PartialOrd` for tuples, it makes sense to implement it for 0-tuple too.