3 ms·
Have you read the rustnomicon section on lifetimes? I found it pretty useful
by guipsp 4y ago
Have you read the rustnomicon section on lifetimes? I found it pretty useful
- xiphias2 4y agoIt's cool, I just looked at the manual. there's this part though: // NOTE: `'a: {` and `&'b x` is not valid syntax! I hate that I can't introduce new lifetime inside a function, it would make refactoring so much easier. Right now I have to try to refactor, see if the compiler accepts it or not, then revert the change. Sometimes desugaring would be a great feature in itself, sugaring makes interactions between functions much harder to understand.