News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by eyelidlessness on Thursday September 26, 2019 @03:25PM (#21084522)
Implicit await would be a nightmare. You could never tell looking at a given block of code whether it yields to the event loop or not, introducing invisible concurrency problems. Even static types wouldn't solve this without looking at every value and function return type.
Re:V8 adds support for top-level await by mstade on Sunday September 29, 2019 @05:25AM (#21106048)
Would love to learn what concurrency issues you'd see with implicit await, that you presumably wouldn't see otherwise. You're probably right, I just can't think of any examples.