Hi What’s the different between the two below? `(...
# getting-started
e
Hi What’s the different between the two below?
(origin as? Implementor)?.someFunction()
vs
(origin as Implementor?)?.someFunction()
r
as Something?
will crash for anything that is not either
null
or
Something
, but
as? Something
will never fail, returning null in those cases instead
👍 2