Alexander Suraphel
11/07/2021, 2:41 PMString
and Char
?Rob Elliot
11/07/2021, 2:53 PMAny
. Char
represents a single character, String
an immutable list of characters, so it's hard to see what common supertype they could have.
(They can also both inherit from Comparable<*>
, but that's not a lot of use...)ephemient
11/07/2021, 11:07 PMComparable<in T>
, so Comparable<*>
is effectively Comparable<Nothing>
which is useless 😄