Hacker News new | ask | show | jobs
by wiseowise 1105 days ago
C++ looks very handsome.

Usually someone will pop up showing crazy meta programming template code and use it a straw man to declare cpp=bad.

2 comments

Which is why elegance argument would've favored staying with Lisp - not only it looks elegant, but also you can do all the "crazy metaprogramming" without the crazy, but rather in straightforward and elegant code.

And I say that as someone doing C++ for a living, and occasionally engaging in said crazy template metaprogramming stuff. Occasionally, because people tend to frown at it during code review; apparently, metaprogramming is reserved only to library authors...

I've bee using C++ since the late 90s, and namespaces are still annoying.
Just use `using namespace std;` inside your function and C++ suddenly becomes nice.
Using boost or std in a function is much better than doing it in the header for obvious reasons, but still annoying.
How so?