Y
Hacker News
new
|
ask
|
show
|
jobs
by
bartekpacia
501 days ago
> Kotlin’s syntax is also weird/quirky in some ways.
I'm curious to learn what you mean by this! :)
1 comments
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.
link
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