Re:Just Write a Test for It
by bschwindHN on Sunday March 30, 2025 @05:16AM
(#43522697)
If you're running something like this and it isn't performance sensitive, you don't really need to deal with lifetimes at all. Lifetimes mostly come into play if you want to work with zero-copy parsing, or structs that borrow some things and act like a sub-view into the data you're working with.
I'm sure there are plenty of other use cases for lifetimes, but they don't come up very often when writing standard "application" code.
I'm sure there are plenty of other use cases for lifetimes, but they don't come up very often when writing standard "application" code.