News for hackers. Stuff that matters.
Re:Async-await on stable Rust by jayd16 on Thursday November 07, 2019 @02:52PM (#21476674)
Yes, I realize all this. My question is how you can have such a system and still keep UI thread synchronization without having the opposite problem of marking all your synchronous methods.
Re:Async-await on stable Rust by bernawil on Thursday November 07, 2019 @04:38PM (#21477585)
in a strict language? I don't think it's possible. Because if you take a better look you'll see that it's not enough to mark functions as sync or async since inside the functions each line of code can be considered a synchronous function in it's own.

What you want is something like Haskell that's lazy and its not about "executing statements" but rather "evaluting expressions".