4 ms·
Your post is very condescending but also very light on facts. To someone successfully using C++ metaprogramming you just sound like you failed to find how and w
by wolfgangK 15y ago
Your post is very condescending but also very light on facts. To someone successfully using C++ metaprogramming you just sound like you failed to find how and when to use it.
(I do agree that it can get ugly wrt error messages and syntax as neither the compilers nor the language were designed with metaprogramming in mind.)
- psykotic 15y agoThe condescension was very much intended. Look, I'm not going to convince anyone of this point of view with a few hastily typed-out paragraphs on Hacker News. No-one can do that. It's something that rings true or false depending on your experience. My experience is that most uses of C++'s features beyond the rudimentary lead to software that takes forever to build, forever to run and forever to maintain, all of which are unacceptable and inexcucable. I started out in my pre-career as an enthusiastic C++ supporter who knew most of the tricks and dark corners of the language; template metaprogramming was (and still is) easy as pie for me. But every experience I've had since then has pushed me in the opposite direction, away from immature self-indulgent cleverness. Nowadays I mostly use C or a very C-like subset of C++.