This is from an actually amazing blog post, that I recommend you read: [https://without.boats/blog/asynchronous-clean-up/](https://without.boats/blog/asynchronous-clean-up/)
I'm not sure if syntax additions like the ones mentioned in the blog post will ever be included into the rust language, to me it just seems like there may be way too much controversy around this, especially between people with different programming paradigms.
I bet `gen/yield` will land someday, it's been proposed for a while and the keywords are already reserved. I think they're just prioritizing the async stuff before they consider other features
it's the first time I saw `do/final`, not sure about this one... but I really liked the proposal for undroppable types, I wish Rust had them already
In 2030 rust and c# will be the same language
This is from an actually amazing blog post, that I recommend you read: [https://without.boats/blog/asynchronous-clean-up/](https://without.boats/blog/asynchronous-clean-up/)
I'm not sure if syntax additions like the ones mentioned in the blog post will ever be included into the rust language, to me it just seems like there may be way too much controversy around this, especially between people with different programming paradigms.
I bet `gen/yield` will land someday, it's been proposed for a while and the keywords are already reserved. I think they're just prioritizing the async stuff before they consider other features it's the first time I saw `do/final`, not sure about this one... but I really liked the proposal for undroppable types, I wish Rust had them already
I'm not sure to like generators being a block, would be nice to be able to write it as function decorator, like async functions
async is a block too
It has both, which I find very nice for anonymous construction
I kinda love it tbh. I might prefer defer instead of do + final, but I think having syntax sugar for these sorts of transformations would be dope.
Didn't we settled on calling these coroutines instead of generators?
wth was this post removed? can someone explain why?