3 ms·
I find Dart comparable or maybe even slightly better than Kotlin, not sure why exactly, some things I like: - Overall the language is simpler and more regular,
by RivieraKid 6y ago
I find Dart comparable or maybe even slightly better than Kotlin, not sure why exactly, some things I like:
- Overall the language is simpler and more regular, it's easier to read it.
- Async / await is way simpler and less mentally taxing than Kotlin's coroutines.
- loic-sharma 6y agoCould you say more about your experience of Kotlin's coroutines vs async / await? I'd love to learn more about that! :)
- jitl 6y agoKotlin’s coroutines are mind-bending to me. They multiply all the spooky fears about threading correctly times a second order of semi-deterministic scheduling logic. The API surface around coroutines is also very complex. Javascript provides one simple API for creating a promise object, and a simple model for how async functions interact. On the other hand, Kotlin suspend funcs need to be “launched” or “run” on a coroutine context which may or may not actually allow async behavior, be backed by a thread pool, and transition between schedulers (?). Kotlin coroutines are very flexible but with that power comes a lot of confusing complexity.