3 ms·
So I know _nothing_ about Rust, but I know Tasks in C# and one of the most important concepts is that a variable can be “async local” i.e. local to the async “t
by moomin 3y ago
So I know _nothing_ about Rust, but I know Tasks in C# and one of the most important concepts is that a variable can be “async local” i.e. local to the async “thread”. So I wonder if the problem is that rust doesn’t have a lifetime specific to an “async thread”. As long as it’s well understood that the variables don’t leave that context, I think everything is easier to reason about.
- insanitybit 3y agoYou can move a variable into a task, or even borrow it across the task, and things work perfectly fine. Frankly, this article is blowing things massively out of proportion.
- moomin 3y agoAs I say, I really don’t understand and this probably isn’t the place to educate me, but this isn’t the only article I’ve seen that regards Send + ‘static as a) mandatory and b) problematic.
- insanitybit 3y agoFor sure, some people definitely think this is problematic. But I wonder how much of that is "this is problematic to my philosophy of programming" versus "this actually slows me down when writing code".