If this is done, please go with `async do { … await … }`. May as well reuse
existing syntax as much as possible. As mentioned, `<-` is problematic both
from the standpoint of conflict with existing operators and incomplete analogy
with Haskell. If the result should be Promise-ified, best to indicate this
explicitly with `async`.
I do think that having a syntax for async expressions is very useful. IIFEs
already feels like a hack around the lack of expression-orientedness of control
flow structures in JS, and async-IIFEs just compound the issue of syntactic
noise for straightforward operations.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss