News for hackers. Stuff that matters.
Re:Rust’s async isn’t colored by shakow on Thursday March 11, 2021 @08:16AM (#26423629)
> The point of the colored function is that the color is a leaky abstraction

I disagree with this take; I understand the point of the original “What color is your function?” as colored functions creating an impassable divide between Promise-wrapped values and sync code.

Indeed, in the end, the author mentions e.g. C# as not being colored, because even if sync/async functions are different, it features escape gates to unwrap promises and bring them back into the sync world.

Re:Rust’s async isn’t colored by Analemma_ on Thursday March 11, 2021 @11:03AM (#26425459)
C# isn't exactly doing a great job at escaping the color world, judging by the number of bugs I've seen where calling .Wait() or .Result on an async function from a sync one caused the entire application to deadlock.
Re:Rust’s async isn’t colored by shakow on Thursday March 11, 2021 @12:36PM (#26426686)
I'm not intimately familiar with C# so I take your word for it, but conceptual flaws and implementation bugs are two different things.
Re:Rust’s async isn’t colored by pjmlp on Thursday March 11, 2021 @12:05PM (#26426292)
Usually the outcome of not calling ConfigureAwait().