4 ms·
I do not argue that Kotlin is a nicer and a language with more features that are useful. What of these would you call "more expressive"? I'd agree with sealed
by _Codemonkeyism 9y ago
I do not argue that Kotlin is a nicer and a language with more features that are useful.
What of these would you call "more expressive"? I'd agree with sealed classes, they express a limited set of possible classes. Perhaps tail recursion as I can express problems in way of recursion without stack overflows. I don't think coroutines are more expressive than Futures/get, only a runtime optimization for many concurrent executions.
- joshuamorton 9y agoAsync/await coroutines (C#, python, ECMAscript 7) are much nicer than futures, at least ime. I think that in terms of expressiveness of async code it goes callbacks -> futures/promises -> coroutines Because callbacks are a completely different style of code, your async looks totally different. Futures and promises are better, but still make it difficult to ever break out of the async context, coroutines make the difference between async and normal code nonexistant, and allow clean escape from an async context.