4 ms·
Will the MIR/HIR stuff also help with adding features? I'm thinking of things like non-lexical scoping/SEME regions/etc. which might be easier to implement with
by ewillbefull 11y ago
Will the MIR/HIR stuff also help with adding features? I'm thinking of things like non-lexical scoping/SEME regions/etc. which might be easier to implement with it.
- steveklabnik 11y agoWhen I started reading your comment, I was ready to respond with "yes, one example is non-lexical lifetimes", sooo :) Another is compiler plugins: it's much easier to stabilize an MIR than it is to stabilize the compiler's internal functions.
- pcwalton 11y agoYes, MIR will help with non-lexical borrows.
- dbaupp 11y agoYep, the MIR allows the compiler to understand control flow more accurately and more precisely. Non-lexical lifetimes in particular are one of the big features that the MIR should help enable.