https://kotlinlang.org logo
u

uhe

03/24/2016, 5:06 PM
Will this be possible in the future?
Copy code
fun foo(x: String?) {
        if (x.isNullOrEmpty()) {
            println("x is null")
        } else {
            println("length of x = ${x.length}") // allegedly unsafe
        }
    }