News for hackers. Stuff that matters.
Re:Compile Time C++ Snake Game (2016) by knome on Sunday July 15, 2018 @02:08AM (#17534026)
http://www.stroustrup.com/bs_faq.html#understand

> I was very surprised when Jeremy Siek first showed my the compile-time if that later became std::conditional, but I had aimed for generalty (and gotten Turing completeness modulo translation limits). I opposed restrictions to C++ immediately when Erwin Unruh presented what is widly believed to be the first template metaprogram to the ISO Standards committee's evolution working group. To kill template-metaprogramming, all I would have had to do was to say nothing

Discovered by users after being created as a side effect of the power of the template expansion defined by the committee, and then kept thereafter.

Re:Compile Time C++ Snake Game (2016) by Negitivefrags on Sunday July 15, 2018 @04:01AM (#17534289)
I would say that you are misrepresenting the thing you are quoting.

It was a side effect yes, but it’s not like a working compiler was released and a users found this.

It was discovered during the design phase of templates by people involved in standardisation process.

And it sounds like leaving it in was even a contentious point that others were against.

So far from an accident, it was a feature that was extensively discussed and intentionally supported.