3 ms·
> For starters it needs to have classes Rust doesn't have classes. And as discussed in the article, Rust puts the vtable pointer on the reference while C++ put
by hsivonen 8y ago
> For starters it needs to have classes
Rust doesn't have classes. And as discussed in the article, Rust puts the vtable pointer on the reference while C++ puts it on the pointee, so even fully abstract C++ classes ("interfaces") and Rust traits (when used with type erasure rather than with generics) are implementation-wise different even if they look conceptually similar.
Go doesn't set up the stack in the same way as the others.