Y
Hacker News
new
|
ask
|
show
|
jobs
by
cosmic_cheese
501 days ago
No terenary if and the elvis operator, for one. Stuff like that trips me up frequently when jumping between Kotlin and Swift/other C-likes.
2 comments
koakuma-chan
501 days ago
If expression:
https://kotlinlang.org/docs/control-flow.html#if-expression
Elvis operator:
https://kotlinlang.org/docs/null-safety.html#elvis-operator
link
bartekpacia
501 days ago
Ah, I see. Tbh, I actually like the lack of ternary and elvis, they are nicely handled by if expression (as the other comment notes)
link