dsimcha wrote:
Not sure I agree. C++ templates were probably intended to be something like generics initially and became Turing-complete almost by accident.
That is factually correct. It was quite a hubbub on the C++ standardization committee when Erwin Unruh wrote a C++ program that wrote prime numbers in error messages. See http://tinyurl.com/oqk6nl
Andrei