logoalt Hacker News

Machalast Wednesday at 12:51 PM1 replyview on HN

It's also worth considering that many editors have default snippets that transform something.await into (await something) for languages with prefix await, so it kind of makes sense to cut out the middle man and just make that the syntax to me.


Replies

maleldillast Wednesday at 1:37 PM

That transformation makes writing both variants similar, but you still need to read `await (await fetch()).body()`, which IMO is much worse.