4 ms·
Thinking that it's a historical accident that everything is async in Javascript is a fundamental misunderstanding of async-everything.
by always_good 9y ago
Thinking that it's a historical accident that everything is async in Javascript is a fundamental misunderstanding of async-everything.
- ajkjk 9y agoWant to elaborate? I disagree, but I'm happy to be corrected. Anyway, what I said was that it's a historical artifact that JS has a single thread of execution, and by that I meant, "it was standard to do that at the time that JS was conceived, so that's how it was done". If you were inventing web browsers today I don't think you'd ever intentionally choose to do it that way.