4 ms·
Some C++ wizards took Greenspun's 10th rule as a challenge and developed template metaprogramming libraries like Loki and Boost :P Its kind of interesting to o
by cmars232 19y ago
Some C++ wizards took Greenspun's 10th rule as a challenge and developed template metaprogramming libraries like Loki and Boost :P
Its kind of interesting to observe how C++ typelists do compile-time metaprogramming, they use a cons linked-list of types in templates. Its kind of sad to watch though because there's no REPL to set the cons free.
- derefr 19y agoNow that's an interesting thought--a two-stage compiler to replace C++: C with a LISP preprocessor.