An unofficial, read-only Hacker News reader. Join the beta →

In C++, = default and {} are not the same constructor (opens external site)

129 points by surprisetalk 2 days ago | lemire.me | 198 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. > This makes it a terrible language for actually getting things done,

    The thing that I like about C++ the most is that it's best language for actually getting things done.

    The 'problem' with C++ is that people who want to get things done go to the committee and say, "hey, I need to actually get things done, if you add this language facility, I can actually get things done better," and they'll often just say "ok" and add it to the language. And if you're the sort of person who believes you must use every single facility provided by the language, then you walk away from C++ thinking it's too complicated. But if you're the sort of programmer who's only interested in getting things done, you can simply ignore all that noise and just actually get things done with the facilities that you know and like.

    You don't have to use deeply nested templates, complex dynamic inheritance trees, move semantics, Turing-complete template metaprocessing, you don't even have to manually manage your memory if you don't want to. (personally I avoid all of those things except move semantics) But it's there if you need it.