Poll: In an article about an async API, to make things easy to understand, the code examples should use:
-
-
Replying to @jaffathecake
Top level await is not supported anywhere... Seems like a dangerous example
2 replies 0 retweets 1 like -
Replying to @MylesBorins
Right, that's the worry. Or… will people just get the intent behind the example
2 replies 0 retweets 1 like -
Replying to @jaffathecake
Nope. People will get confused. Be explicit about async function and erorr handling is what my gut says
1 reply 0 retweets 3 likes -
Replying to @MylesBorins
Do you feel the same about "import"? Should I always wrap those examples in a <script type=module>?
2 replies 0 retweets 4 likes
Replying to @jaffathecake @MylesBorins
Yes, unless you make it clear that all examples are in a module context some other way
11:48 AM - 30 Jul 2017
0 replies
0 retweets
2 likes
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.