Kotlin中是否有一种习惯将变量设置为null(如果尚未为null)?比从语义上更令人愉悦的东西:
var test: String? = null if(test != null) test = null
null kotlin
kotlin ×1
null ×1