3 ms·
Rust does not use reflection for this. Reflection support in rust isn’t actually much better than in C++.
by ComputerGuru 3y ago
Rust does not use reflection for this. Reflection support in rust isn’t actually much better than in C++.
- i-use-nixos-btw 3y agoI’m not a rust dev, but looking into how the Debug trait works, it’s basically what we’d need compile time reflection to get in C++. It generates code that uses the class name and class members. In C++ we have no way of doing that (without hacky macro stuff).