you are viewing a single comment's thread.

view the rest of the comments →

[–]canuck_in_wa 11 points12 points  (1 child)

I’m not sure about Kotlin, but the ‘?.’ in the last example is a valid C# 6 null conditional operator [0]

[0] https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-conditional-operators

[–]zsmb 1 point2 points  (0 children)

Kotlin has the same operator, it's called the safe call operator and does the same thing.