4 ms·
What about lifetimes?
by samuelec 2y ago
What about lifetimes?
- hermanradtke 2y agoA Rust 101 intro does not need to concern itself with lifetimes.
- justincredible 2y ago[dead]
- pornel 2y agoIndeed, overuse of lifetimes is a common novice mistake. In most real-world programs lifetime annotations are very rarely needed. The worst disaster of nonsensical <'a> exploding everywhere comes from novices trying to use Rust's references to store objects "by reference" in a struct, without understanding that in Rust references have a completely opposite meaning that forbids storing the data.
- samuelec 2y agoStill that you can't just avoid to explain lifetimes. There is a lot of code out there witch uses lifetimes