3 ms·
Abuse by users is subjective. Still, C++ templates make parsing undecidable. It's worse than just a Turing-complete preprocessor like, say, Lisp macros. In C++
by praptak 7y ago
Abuse by users is subjective. Still, C++ templates make parsing undecidable.
It's worse than just a Turing-complete preprocessor like, say, Lisp macros. In C++ you cannot decide the type of the next token until you evaluate the (Turing-complete) templates.
This shows that the templates are at least a bit too powerful.