3 ms·
Supposedly lifetime specifiers will be phased out once the compiler gets good enough. I hope so. Syntax matters for adoption.
by zelly 7y ago
Supposedly lifetime specifiers will be phased out once the compiler gets good enough. I hope so. Syntax matters for adoption.
- winrid 7y agoThat would be amazing. I was really banging my head on that one.
- steveklabnik 7y agoIt's not true. They're required, as they describe programmer intent.
- crispinb 7y agoThough presumably there's a chance that more could be elided over time?
- steveklabnik 7y agoIn theory, maybe.
- Hercuros 7y agoI don’t think they are going to be phased out, since including lifetime specifiers is a means of documenting intent (they are part of a function’s public interface). Removing them would mean that seemingly irrelevant internal changes to functions would cause mysterious compiler errors elsewhere.