FizzBuzz solved using C++ template metaprogramming by having the compiler output the solution as error messages: adampetersen.se/articles/fiz…
2
14
7
@stilkov C++ template mp was discovered accidentally when some1 generated prime nos as compiler errors in 1 of the standardization mtgs
2
Replying to @debasishg
@debasishg Yeah, @KevlinHenney showed that code (or one with similar effect) :-)

Jan 22, 2013 · 4:37 PM UTC

1
Replying to @stilkov
@stilkov @debasishg Yup, the code I showed was Erwin Unruh's original 1994 example.