2 ms·
To condense what you're saying to its core: you can avoid the need to make callers async if you simply make everything async. In essence, that's the choice Go
by emn13 12y ago
To condense what you're saying to its core: you can avoid the need to make callers async if you simply make everything async.
In essence, that's the choice Go made. It's certainly simpler for the programmer. It probably makes optimization trickier, and it probably makes efficient parallelism harder (since real threads are completely abstracted away, the VM needs to understand when to start real threads, and when to use promises).
For a language like javascript, it sounds like these tradeoffs are certainly worth it.