You dont write code like this in rust.
I perfectly agree, that would be horrible code! I would generally try to restructure my code, making it better fit the actual lifetimes of the data I’m working with. The point in the article is that you can’t really escape from this. I’m not arguing this is a real problem, and I don’t think the article is neither, just pointing out that this is something you can easily do in C# and not in Rust. It’s just a difference between the two languages.
=> More informations about this toot | View the thread | More toots from Giooschi@lemmy.world
=> View nous@programming.dev profile
text/gemini
This content has been proxied by September (ba2dc).