3 ms·
C++ has no reflection either. Are you saying it's not object oriented? Rust has late binding (also known as dynamic dispatch). Check trait objects. It's not re
by shmerl 8y ago
C++ has no reflection either. Are you saying it's not object oriented?
Rust has late binding (also known as dynamic dispatch). Check trait objects. It's not really any worse than C++ virtual functions which is its form of dynamic dispatch.
See https://doc.rust-lang.org/book/ch17-02-trait-objects.html https://doc.rust-lang.org/book/ch17-02-trait-objects.html
And Rust has dynamic linking as well:
https://doc.rust-lang.org/reference/linkage.html https://doc.rust-lang.org/reference/linkage.html
So IMHO Rust has enough features to be used in object oriented fashion.