News for hackers. Stuff that matters.
Re:Fixing the callback spaghetti in node.js by koush on Thursday September 29, 2011 @04:34AM (#3051625)
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.
Re:Fixing the callback spaghetti in node.js by dbrock on Thursday September 29, 2011 @02:42PM (#3053701)
How about

  try await foo = bar(baz)
as shorthand for

  await error, foo = bar(baz)
  if (error) throw error