3 ms·
I wouldn’t say that’s the “whole selling point of Rust.” The borrow checker was based on lexical scopes, rather than the CFG, until last year.
by rayiner 3y ago
I wouldn’t say that’s the “whole selling point of Rust.” The borrow checker was based on lexical scopes, rather than the CFG, until last year.
- phoe-krk 3y agoThanks - I quoted too much of the parent, I've amended my comment.
- steveklabnik 3y ago“Until last year” is technically correct but not really accurate. Lifetimes were made non-lexical in 2018, but only for Rust 2018 code and newer. Last year is when they were made non-lexical for 2015 code as well. For the vast majority of Rust developers, lifetimes have been non-lexical for five years now.