An unofficial, read-only Hacker News reader.

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

131 points by surprisetalk 4 days ago | lemire.me | 198 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. The only sane usage of C++ is "This is a legacy project, needs to integrate with a legacy C/C++ project, or all our engineers are C++ experts and they don't want a new language".

    For everything else, you should pick one of any number of other languages. Rust, swift, zig, go, java, python, javascript. Take your pick.

    Replies (1)
    1. Agree, however those other languages will have C++ on their infrastructure maybe forever, due to the costs of fully bootstraping a compiler toolchain and backend support for various kinds of operating systems and processors.

      So it is more a kind of gray answer, with polyglot development approach in many cases.