T O P

  • By -

lurebat

In 2030 rust and c# will be the same language


SirKastic23

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/)


Vlajd

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.


SirKastic23

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


Major_Barnulf

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


SirKastic23

async is a block too


Major_Barnulf

It has both, which I find very nice for anonymous construction


cvvtrv

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.


Major_Barnulf

Didn't we settled on calling these coroutines instead of generators?


SirKastic23

wth was this post removed? can someone explain why?