>more values are of type `Any` compared to `Str...
# announcements
k
more values are of type
Any
compared to
String
But less values are of type
(Any) -> Unit
then of
(String) -> Unit
, so the former is more specific.
a
I've correct my answer because I realized to late that you talked about
T
vs
Any
not
String
vs
Any
being "more specific" depends on the context
Any
is less specific compared to
String
when you look at the possible values it can hold. On the other hand
Any
is more specific compared to
String
when you look at the possible operations you can do with them
k
True, I only focused on the specific problem @jdiaz was having.
👍 1
a
Producer Extends (covariance), Consumer Super (contravariance)