Hacker News new | ask | show | jobs
by Plaastix 2503 days ago
In Kotlin, if is an expression: https://kotlinlang.org/docs/reference/control-flow.html. This is why the language drops Java's ternary operator.