elye
11/26/2018, 6:37 AM(origin as? Implementor)?.someFunction()
vs
(origin as Implementor?)?.someFunction()
rnpy
11/26/2018, 6:48 AMrnpy
11/26/2018, 6:53 AMas Something?
will crash for anything that is not either null
or Something
, but as? Something
will never fail, returning null in those cases instead