3 ms·
Java also has Comparer and Comparator in both generic and non-generic flavors. Java lacks Equatable, which is a problem. Haskell, for example, has both Eq and O
by snprbob86 16y ago
Java also has Comparer and Comparator in both generic and non-generic flavors. Java lacks Equatable, which is a problem. Haskell, for example, has both Eq and Ord. It is frequently possible and convenient to be able to implement Eq in terms of Ord and part of Ord in terms of Eq, but these are orthogonal concepts.
As someone who has done A LOT of professional C# development: I've found that with only a few exceptions, the .NET base class libraries are very well designed with entirely reasonable defaults. I use Python primarily now and, in general, the core .NET libraries seem to be better designed than most of the older Python libraries (many of which are getting properly cleaned up in Python 3).
Every environment has its cruft.