2 ms·
Swift does have checked exceptions too (at least by my understanding of the term "checked exception"). In general I think Swift is more thoughtfully and elegant
by RivieraKid 7y ago
Swift does have checked exceptions too (at least by my understanding of the term "checked exception"). In general I think Swift is more thoughtfully and elegantly designed than Kotlin, people usually say that they're very similar but I find Swift more pleasant read and write.
- ragnese 7y agoYes and no. In Swift you have to mark if a function throws, but not WHAT the function throws. The Java-style checked exception haters might see that as the best of all worlds. I generally agree that Swift is a little nicer than Kotlin. I like the enums better than sealed classes, I like that Swift has value types. The only think from Kotlin that I miss in Swift is the scoping methods: apply, with, let, also.