r/mAndroidDev • u/programadorthi • Mar 23 '26
Billion Dollar Mistake Null also Null
Kotlin is really a null-safety language. It allows you create a silent bug that should be avoided:
null.also {
println("Hello production silent null bug")
}
0
Upvotes
View all comments
Show parent comment
3
u/Opulence_Deficit You will pry XML views from my cold dead hands Mar 24 '26 edited Mar 24 '26
Letis conceptual equivalent ofmap. It should be used only for its return value and never for side effects. For that isalso.