3 ms·
That’s interesting — I haven’t seen any code that does this. Do you have more fleshed out examples on github to share?
by empath75 7y ago
That’s interesting — I haven’t seen any code that does this. Do you have more fleshed out examples on github to share?
- steveklabnik 7y agoWe had discussions about this prior to 1.0, and some people do write code this way, but in general, you’re only using lifetimes in more complex code, and doing this makes it even more verbose. It does sometimes help, though. I personally prefer the ‘a version in this case for this reason, it’s actually harder for me to understand. YMMV.