Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Macha
9 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
9 days ago
[–]
That transformation makes writing both variants similar, but you still need to read `await (await fetch()).body()`, which IMO is much worse.
reply
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: