2 ms·
Each codegen is run multiple times. Imagine you want to generate 100 similar classes with similar code except for a small difference.
by zeroonetwothree 11y ago
Each codegen is run multiple times. Imagine you want to generate 100 similar classes with similar code except for a small difference.
- epaga 11y agoBut that would be a code smell akin to copy-pasting code wouldn't it? I'm having trouble seeing any real-world scenarios for this kind of codegen but since it seems to be in wide use at Facebook, I must just be missing something...