Re:Solving FizzBuzz with C++ compiler error messages
by cmagahern on Sunday April 22, 2012 @05:37AM
(#3874418)
If anything, this article supports the claim that C++ is a good language. The fact that C++ templates are Turing-complete and allow for this kind of thing is pretty darn cool in my opinion.
[ Parent
| on HN ]
Re:Solving FizzBuzz with C++ compiler error messages
by tsewlliw on Sunday April 22, 2012 @03:12PM
(#3875745)
Food for thought: That means whether an arbitrary c++ program compiles reduces to the halting problem.
I would wager that for the vast majority of real situations you'd be better off writing that in the primary language and either bundling the precomputed result when you package your application or running it at runtime.
I'm sure there is a small class of trivial exceptions, but no non-trivial ones.