News for hackers. Stuff that matters.
Re:Indirect ownership, shallow borrow and self-referential d... by ______-_-______ on Saturday April 30, 2022 @11:48AM (#31216912)
> This is also how generators and async functions actually work and where this problem often arises, so it's not a stretch to think about it like that.

There is a crate that uses async functions to accomplish exactly this. https://crates.io/crates/escher

Disclaimer, I've never actually tried using it. I've used owning_ref or ouroboros depending on what I need.

Re:Indirect ownership, shallow borrow and self-referential d... by panstromek on Saturday May 07, 2022 @03:44PM (#31297882)
This is a really cool hack, I didn't know about that. It's another example showing that we really aren't conceptually that far from full fledged language support.