I fear that async/await will bring JS devs to use try/catch for logic control flow instead of only error handling. The future looks bleak.
-
-
Replying to @trevnorris
@trevnorris Golang's way of doing async looks nice, could emulate by doing: ` { err, res } = await foobar() if (err) // handle err `1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
@trevnorris but all in all it's a gimmick; errbacks work now and are easy to reason about. Everything else tends to complicate things.1 reply 1 retweet 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts I don't mind the syntax. Problem is await uses Promises, which catch exceptions. This can get very unsafe.1 reply 0 retweets 1 like
Replying to @trevnorris
@trevnorris Do you have a writeup about why this is a bad idea? I spend a lot of time trying to convince people not to use promises.
12:08 AM - 26 Aug 2015
0 replies
0 retweets
0 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.