- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Why not have Ordered[T] extend Comparable[T]
Wed, 2009-01-14, 01:57
I need to put some Scala objects into some Java collections and I had already
implemented Ordered[], but to add them into the Java collections, I needed to
just say "with Comparable[T]".
Given that Ordered implements compareTo by delegating to Ordered's compare(),
why not have Ordered extend Comparable?
Blair