3 ms·
One benefit comes from being able to use `async`/`await`. Using `try`/`catch` with `async`/`await` is a bit awkward, though, which is especially unfortunate be
by rattray 9y ago
One benefit comes from being able to use `async`/`await`.
Using `try`/`catch` with `async`/`await` is a bit awkward, though, which is especially unfortunate because it's the #1 place you should be handling errors.
LightScript has a language feature[0] that makes it less awkward (sort of an`Either`/`Result` type) that I'm thinking about submitting to TC39.
[0] – http://www.lightscript.org/docs/#safe-await http://www.lightscript.org/docs/#safe-await