Hacker News new | past | comments | ask | show | jobs | submit login

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.



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: