5 ms·
Not to forget, C++ template meta-programming was discovered by accident. That's probably the only feature (and C++ is the only language) that I can think of in
by arunc 8y ago
Not to forget, C++ template meta-programming was discovered by accident. That's probably the only feature (and C++ is the only language) that I can think of in any language that's discovered by accident and is of utmost essential for introspection capabilities.
- firebacon 8y ago> Not to forget, C++ template meta-programming was discovered by accident That's a bit of an uncharitable reading, no? For others that would like to make up their own mind: https://softwareengineering.stackexchange.com/questions/125314/in-c-were-sfinae-and-metaprogramming-intentional-or-just-a-byproduct-of-templ https://softwareengineering.stackexchange.com/questions/1253...
- agumonkey 8y agolisp was kind of a set of accidents too. remember Mexp ?
- jcelerier 8y ago> Not to forget, C++ template meta-programming was discovered by accident. yep, in 1993 some graybeard working on GCC checked files by last modification date to do some refactoring and saw one that hadn't changed since july 7, 1926, aptly called "alexandrescu.c". When he opened it, his computer started glowing yellow and his BSD prompt suddenly changed from '$' to '>'. He executed the testcase associated and the horror happened... a 666 kilobyte dump of template error was uploaded right into comp.lang.c++, which blew the poor hacker's 486DX away. Since then templates roam free again in our universe. OR when people say that it was discovered, it's that it was discovered during the process of designing templates and they found it nice, so they kept it.
- sriram_malhar 8y agoBrilliant!