Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koush
on Sept 29, 2011
|
parent
|
context
|
favorite
| on:
Fixing the callback spaghetti in node.js
This is certainly something that is doable and crossed my mind, but I did not want to have the await be restricted to functions that conform to the typical return arguments. For now at least.
dbrock
on Sept 29, 2011
[–]
How about
try await foo = bar(baz)
as shorthand for
await error, foo = bar(baz) if (error) throw error
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: