3 ms·
> and better designed than Go? Not for my money. A few things Go does better than Kotlin: 1. No classes, inheritance, etc (let's dispense with the "you don't
by weberc2 9y ago
> and better designed than Go?
Not for my money. A few things Go does better than Kotlin:
1. No classes, inheritance, etc (let's dispense with the "you don't have to use it!" arguments; they don't prevent us from interacting with an ecosystem and std lib full of classes and inheritance)
2. Concurrency; Go has one model, goroutines. Goroutines != coroutines, and no worrying about whether some function blocks the thread with a sync call.
3. Real, first class value types. Easy reasoning about allocations and escape analysis, etc.
4. Tooling: most everything is simple and does the right thing by default. There is one build system to understand, and there are no build scripts to write or cargo cult. Oh, and it's fast.
Kotlin has generics which are nice, but in practice I spend zero time on runtime type errors; on the other hand, reasoning about performance and tooling consume quite a lot of my time. I'm happy that it's getting generics, but it has a long way to go before it's competitive with Go for my time.
- weberc2 9y agoLast sentence should read, "I'm happy that is getting native compilation". I missed the edit window.