Open jnm2 opened 4 years ago
The same way equality operators are generated, it would be nice to not have to write this out:
public static bool operator <(Foo left, Foo right) { return left.CompareTo(right) < 0; } public static bool operator >(Foo left, Foo right) { return left.CompareTo(right) > 0; } public static bool operator <=(Foo left, Foo right) { return left.CompareTo(right) <= 0; } public static bool operator >=(Foo left, Foo right) { return left.CompareTo(right) >= 0; }
A suggestion would even be nice, or just a refactoring.
We would definitely take this feature if someone wrote it. If i have time, i can try to do that myself. Or, if you're interested @jnm2 you can do it :)
The same way equality operators are generated, it would be nice to not have to write this out:
A suggestion would even be nice, or just a refactoring.