top | item 37796397

(no title)

formula1 | 2 years ago

Personally, I figure everything "await"ed by default seems to make more sense. Then add a keyword like "delay"ed to a function call to make the function return a promise that can be "await"ed later.

This way beginners don't have to understand things like the event loop or difference between a function that returns a promise and one that doesn't while more advanced users can still manually handle promises

discuss

order

No comments yet.