I really like the way kotlin is doing it. The readability of the first one and still a direct assignment.
var a = if (isTrue) 2 else 9
I really like the way kotlin is doing it. The readability of the first one and still a direct assignment.
var a = if (isTrue) 2 else 9