4 ms·
Can you explain why you don't like `use` but you would like an `await` keyword? As far as I can see, `use` is a superset of the `await` transformation that jus
by widdershins 2y ago
Can you explain why you don't like `use` but you would like an `await` keyword?
As far as I can see, `use` is a superset of the `await` transformation that just happens to work in a lot more situations. It circumvents callback hell when you're working on the Javascript target [1] but also de-indents lots of other code like handling results [2].
[1] https://github.com/gleam-lang/javascript https://github.com/gleam-lang/javascript
[2] https://erikarow.land/notes/using-use-gleam https://erikarow.land/notes/using-use-gleam