Different topic: My bug report got closed but the ...
# kotlin-native
w
Different topic: My bug report got closed but the reason doesn’t make sense to me and the issue is not limited to Swift: https://youtrack.jetbrains.com/issue/KT-75100 We get bitten by forgotten
@Throws
annotations every now and then. On
suspend fun
this is especially annoying because they already generate an Objective-C / Swift API which requires error handling, so even the iOS developers won’t notice that something is missing. Making the app crash for missing
@Throws
annotations is just bad behavior. Can Kotlin please be changed (at least for Swift export) to treat
suspend fun
as having
@Throws(Throwable::class)
by default (unless there’s an explicit annotation of course)? This is much better than hard-crashing by default.
@Pavel Kunyavskiy [JB] and this topic maybe, too? 🙂
@sergey.bogolepov Are you the right person to ask this question?