2 ms·
Kotlin has context blocks instead of the looser context hopping continuation syntax of C# but it seems like it's trading one explicit syntax for another. You c
by jayd16 5y ago
Kotlin has context blocks instead of the looser context hopping continuation syntax of C# but it seems like it's trading one explicit syntax for another. You can still get off main thread runtime exceptions in Kotlin on Android, so it doesn't solve the issue entirely.
I think that just shows how necessary some kind of explicit syntax is, despite all the talk I see that it's unnecessary. I would love to see more examples though, or a Kotlin native UI.
- bluquark 5y agoAgreed. The only major language I know of where it's fully implicit is Go, which is rarely used for UI. > I would love to see more examples though, or a Kotlin native UI. Jetpack Compose is a Kotlin-native UI framework. Here are some examples of how it uses coroutines: https://developer.android.com/jetpack/compose/kotlin#coroutines https://developer.android.com/jetpack/compose/kotlin#corouti...