Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
bartekpacia
1y ago
0 comments
Share
> Kotlin’s syntax is also weird/quirky in some ways.
I'm curious to learn what you mean by this! :)
0 comments
default
newest
oldest
cosmic_cheese
1y 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.
koakuma-chan
1y ago
If expression:
https://kotlinlang.org/docs/control-flow.html#if-expression
Elvis operator:
https://kotlinlang.org/docs/null-safety.html#elvis-operator
bartekpacia
OP
1y 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)
j
/
k
navigate · click thread line to collapse