Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Macha
70 days ago
|
parent
|
context
|
favorite
| on:
(On | No) Syntactic Support for Error Handling
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.
maleldil
70 days ago
[–]
That transformation makes writing both variants similar, but you still need to read `await (await fetch()).body()`, which IMO is much worse.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: