Allow borrowed interface types #3040
Labels
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
I-slow
Issue: Problems and improvements with respect to performance of generated code.
Milestone
Seems weird that interface types are always reference-counted. For example, there could also be a "borrowed" variant, which contains a pointer to a borrowed object and a pointer to a vtable.
(It's possible I'm already confused about the distinction between "how the interface type is allocated" and "how the concrete type is allocated".)
The text was updated successfully, but these errors were encountered: