4 ms·
> If you want dynamic dispatch, you don't use a virtual class, you use a "trait object". Is this referring to Rust? Then it sounds like it will have similar ov
by justicezyx 9y ago
> If you want dynamic dispatch, you don't use a virtual class, you use a "trait object".
Is this referring to Rust? Then it sounds like it will have similar overhead as C++'s virtual functions.
- steveklabnik 9y agoYes, it is, and yes, it does. There are small differences due to the stuff I said above, but it's similar.