Sorry I'm not familiar with es7. But I still thing my OMP is better than
async/await.

1: the await keyword can only be used in an async function, so each time you
want to await you have to add async before outer function.

2: async/await still use promise to handle async, which is not as clear as
my OMP that only use functions. The reject state of the promise became
redundant since await never gets it.

3: the async function calls identically with sync functions, makes it hard
to check out if the function is async without jumping to the definition. But
OMP can easily be recognized.

4: it's complex for async/await to handle deep async callbacks.

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to