This message was deleted.
# compiler
s
This message was deleted.
y
It's a matter of taste really. I'd probably go with the latter
j
In general I prefer the former, since the latter only does what you expect if the type is not a typealias
true 2
y
The latter (
::class.qualifiedName
) doesn't work well for type aliases (it'll give you the underlying class's fqn)
It depends on the situation. If you want to detect the type alias itself or if e.g. it's an
actual typealias
then you might face issues.
j
Try it with List and MutableList