4 ms·
Optional is just signaling to the user that they should check. You could also do this in Kotlin and boom there goes the safety: fn nonNull(): String { v
by vips7L 7y ago
Optional is just signaling to the user that they should check.
You could also do this in Kotlin and boom there goes the safety:
fn nonNull(): String {
val s: String? = null
return !!s
}