Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The writeup mentioned that (await future)?; is undesirable because it disrupts the logical flow.

Could await be implemented as a prefix, with an additional macro?

awaits!(foo()) that expands to (await foo())



That ruins the chaining aspect.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: