Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cosmic_cheese
11 months ago
|
parent
|
context
|
favorite
| on:
Apple is open sourcing Swift Build
Have heard of it, haven’t investigated it deeply. Looks to still have some of the less-great points of the Java ecosystem on the build side of things (gradle) which is a detractor for me.
Kotlin’s syntax is also weird/quirky in some ways.
bartekpacia
11 months ago
[–]
> Kotlin’s syntax is also weird/quirky in some ways.
I'm curious to learn what you mean by this! :)
cosmic_cheese
11 months ago
|
parent
[–]
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
11 months ago
|
root
|
parent
|
next
[–]
If expression:
https://kotlinlang.org/docs/control-flow.html#if-expression
Elvis operator:
https://kotlinlang.org/docs/null-safety.html#elvis-operator
bartekpacia
11 months ago
|
root
|
parent
|
prev
[–]
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)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Kotlin’s syntax is also weird/quirky in some ways.