Re:The Next Chapter in Swift Build Technologies
by bartekpacia on Saturday February 01, 2025 @07:10PM
(#42904004)
> Kotlin’s syntax is also weird/quirky in some ways.
I'm curious to learn what you mean by this! :)
Re:The Next Chapter in Swift Build Technologies
by cosmic_cheese on Saturday February 01, 2025 @08:19PM
(#42904570)
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.
Re:The Next Chapter in Swift Build Technologies
by koakuma-chan on Saturday February 01, 2025 @08:35PM
(#42904698)
If expression: https://kotlinlang.org/docs/control-flow.html#if-expression
Elvis operator: https://kotlinlang.org/docs/null-safety.html#elvis-operator
Re:The Next Chapter in Swift Build Technologies
by bartekpacia on Saturday February 01, 2025 @09:47PM
(#42905204)
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)
Kotlin’s syntax is also weird/quirky in some ways.