3 ms·
> > rc elision is super trivial > no it's not Fair enough. It's still not a very difficult problem, though. You don't have to inline all functions (which yo
by moonchild 6y ago
> > rc elision is super trivial
> no it's not
Fair enough.
It's still not a very difficult problem, though. You don't have to inline all functions (which you don't want to do anyway); you can infer lifetime attributes for each function.
RC has another benefit: it's easier to make a naïve compiler; it'll just produce slow code. Whereas a naïve single-owner compiler implementation (e.g. mrustc) will allow bad code.