4 ms·
Templates are nice, but they have shortcomings a more generic macro system wouldn't. They also have the issue where the more complex is your task, the more conv
by stelonix 4y ago
Templates are nice, but they have shortcomings a more generic macro system wouldn't. They also have the issue where the more complex is your task, the more convoluted the code has to look, compilation times also increase and parsers (ergo, IDEs too) have trouble giving meaningful info on parameters. Don't even get me started on template errors because that's an atrocity on another level :(
- eru 4y agoThe problem with no info on parameters and horrible template errors are related: The root cause is that template expansion is duck-typed. 'Concepts' are supposed to fix that, I heard.