Another two considerations against `Any?.plus(Stri...
# stdlib
i
Another two considerations against
Any?.plus(String)
operator: - we prefer to have as few extensions for
Any?
type or unconstrained generic
T
as possible. -
plus
operation tries its best to preserve the form of the first operand, so that
List + T
is
List
,
String + Any?
is
String
,
Sequence + List
is
Sequence
, etc