3 ms·
It took 69 single steps to get past a BOOST_FOREACH() statement. Madness.
As he often does, John Carmack gives a brief and powerful argument. While I still have a love for C++, just because library developers can do something with enough preprocessor and templates, doesn't mean they should.
- CJefferson 16y agoAn brief and interesting quote from John Carmack. While I still love C++, it seems the language moves is moving further and further away from practical usefulness, in terms of compile time, good error messages and debugability all the time.
- kmort 16y agoI had always felt a little dirty using it, and resisted looking behind the curtain. This tweet has piqued my curiosity too much though. Its definition, for those interested: http://www.boost.org/doc/libs/1_44_0/boost/foreach.hpp http://www.boost.org/doc/libs/1_44_0/boost/foreach.hpp
- zach 16y agoI can't imagine a situation where I would add Boost to a project. Sure, it drags C++ by its angle bracket into a higher abstraction level, if you want that. But adding the core of Boost to any project is like a snake swallowing an elephant made of source files. Even worse, they're practically all template header files. This is not a virtue. I just can't see myself really wanting to make that tradeoff.
- 4chan4ever 16y agoI can't imagine a situation where I wouldn't add Boost to a project, especially considering that large portions of it have been included in C++0x, and that the library has been for years a kind "standard outside the standard" or a de facto standard. Installing/building it the 1st time can be a little messy (the same to be expected from any large library) but it pays off in the long run... Boost has all the stuff you wanted the standard library to have.