What is the difference between
x as? String
and
x as String?
它们看起来都是String?
型的.Kotlin page不能帮我接听.
更新:
To clarify, my question is:
What is the purpose of having an as?
operator at all, since for any object x
and for any type T
, the expression x as? T
can be (I think) rephrased as x as T?
?