3 ms·
You can cherry pick all you want, although I would generally agree that “top level” executables will most likely bump against lifetimes far less frequently than
by wredue 3y ago
You can cherry pick all you want, although I would generally agree that “top level” executables will most likely bump against lifetimes far less frequently than libraries, frameworks, modules etc.
I would also generally agree that a single pass through the official book should mostly be enough to be able to read and understand the op.
- pkolaczk 3y agoTherefore I cited the core of the program as well. It also does a bunch of non trivial async processing there. I’ve written at least two other non-toy Rust programs and I haven’t hit “lifetimes everywhere” problem there either. I guess the most lifetime related problems stem from trying to program the Java/Python/JS style in Rust - from overusing references and indirection. If you model your program as a graph of objects referencing each other then I can imagine you have a hard time in Rust.