I was surprised to find Kt does not have null safe...
# language-proposals
j
I was surprised to find Kt does not have null safe index operators arr?[i]. They would be especially useful for traversing nested structures. The closest issue I could find was https://youtrack.jetbrains.com/issue/KT-19168. Its still in the Submitted state. Here's what they look like in C#
t
on the plus side you will be less prone to use big dynamic data structures which can easily make compile time correctness checking impossible.
v
I like
arr?.get(i)
better
r
I like the explicit way Kotlin handles this too. Easier to read and with the use of the IDE, it is also discoverable when learning Kotlin.