| ▲ | cosmic_cheese 4 days ago | ||||||||||||||||
Broadly speaking, Kotlin deviates from popular conventions more than Swift does. For example, Kotlin expects you to use inline if statements where in Swift, ternary operators work like they do in C, JavaScript, and many other languages. There's also things like Swift's guard statements that can help make intent clearer and read a bit more nicely. | |||||||||||||||||
| ▲ | myHNAccount123 4 days ago | parent [-] | ||||||||||||||||
Same opinion. It just feels off. Why use `fun` for function declarations instead of func or function? Dropping () before { makes it hard to tell what runs first. It feels like it's trying to be different for the sake of being different. I'm not able to quickly skim kotlin code like other 'C-like' languages and tell what is going on because it's trying to be too clever. | |||||||||||||||||
| |||||||||||||||||