News for hackers. Stuff that matters.
Re:Solving FizzBuzz with C++ compiler error messages by angersock on Saturday April 21, 2012 @03:48PM (#3872801)
The next person that claims that C++ is a good language is getting a link to this.

Yes, I program my projects in C++. No, it is not okay.

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.
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.

Re:Solving FizzBuzz with C++ compiler error messages by angersock on Sunday April 22, 2012 @06:47PM (#3876396)
Put differently, I can't even guarantee that my program finishes compiling. That's dumb.

Brainfuck is Turing-complete too, you know. It's not a good language either.