Hacker News new | ask | show | jobs
by zeroonetwothree 3952 days ago
Each codegen is run multiple times. Imagine you want to generate 100 similar classes with similar code except for a small difference.
1 comments

But 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...