stephanc
04/17/2018, 8:28 AM?
, at least there is scoping functions as well that limits this.ilya.gorbunov
04/17/2018, 12:32 PMHowever, it isn't completely clear from the kotlin docs that kotlin's safe call is not like C#'s null propagation.This was discussed earlier here https://discuss.kotlinlang.org/t/foo-bar-yolo-stop-mixed-nullable-non-nullable-call-chain/5506 In short safe calls cannot be short-circuited, because there could be extension functions on nullable receivers in a call chain, like
String?.isNullOrEmpty()
stephanc
04/17/2018, 1:31 PM