4 ms·
The best apprach is to have "reflection" (really, access to the compiler AST or IR) at compile time and generate code from this, since that minimizes the run-ti
by devit 11y ago
The best apprach is to have "reflection" (really, access to the compiler AST or IR) at compile time and generate code from this, since that minimizes the run-time overhead.
See Rust's serde for an example of that for serialization.
- deleted 11y ago[deleted]
- brucefancher 11y agoLet us know when someone implements anything remotely in the same league as Apple's XCode (based on Interface Builder, which first appear ~25 years ago) for designing GUIs using this technique. The fact that it doesn't exist should tell you something.