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

`.await` being postfix makes it easy to chain with further method calls (eg `foo().await.bar().await`). `yield expr` returns `()`, so there is no use in chaining it.


Thanks for the explanation. I was thinking of Python's yield were it evaluates to what is .send() back in the generator.




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

Search: