Not a newbie programmerI am not new to programming, but I am one that started one a few years ago, and I do love templates.
But in the before times, how did people deal with situations where they needed compile-time code generation like templates? I'm guessing horrible, horrible macros (at least that's how I'd do it), but googling the above question only gets me pages and pages of template tutorials.
There are many arguments against using templates, and while it typically boils down to readability, "YAGNI""YAGNI", and complaining about how poorly it is implementimplemented, there is not a lot out there on the alternatives with similar power. When I do need to do some sort of compile-time generics and do want to keep my code DRYDRY, how does/did one avoid using templates?