Skip to content

Comment on Solving FizzBuzz with C++ compiler error messagesparent

Comments

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.

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.