Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Georgelemental
on Nov 7, 2023
|
parent
|
context
|
favorite
| on:
A four year plan for async Rust
`.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.
laerus
on Nov 7, 2023
[–]
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: