9 points
Yeah, Rust can’t have proper reflection, since there’s no external runtime environment that keeps track of your state. Any such smartness either has to be compiled-in (which is how std::any
and macros work) or you can implement something to keep track of this state at runtime, as if you were partially building a runtime environment.
12 points
Minor point of clarification: it can’t have runtime reflection, but in principle it could have compile time reflection.
1 point
0 points
No, the Rust Project recently made sure that Rust can’t have compile-time reflection.
1 point
1 point