Re:Let’s make a JavaScript Wait function
by always_good on Sunday November 12, 2017 @06:39PM
(#15683180)
Thinking that it's a historical accident that everything is async in Javascript is a fundamental misunderstanding of async-everything.
[ Parent
| on HN ]
Want 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.