Poll: In an article about an async API, to make things easy to understand, the code examples should use:
-
-
Replying to @jaffathecake
I hope you can wait on top-level await until TC39 gets further in deciding what it is exactly and that we definitely want it.
1 reply 0 retweets 1 like -
Replying to @littledan @jaffathecake
Until then, great to have discussions and blog posts about what top-level await should be, but better not in unrelated beginner tutorials
1 reply 0 retweets 1 like -
Replying to @littledan
The idea is that developers could imagine the code is within an async function
2 replies 0 retweets 1 like -
Replying to @jaffathecake @littledan
Being explicit seems better, especially in an introductory article or tutorial. (This is why the second option is the only correct one imho)
2 replies 0 retweets 0 likes
Plain promises would work too. But async/await simplifies
11:46 AM - 30 Jul 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.