←back to thread

In Defense of C++

(dayvster.com)
185 points todsacerdoti | 3 comments | | HN request time: 0.224s | source
Show context
lordleft ◴[] No.45267931[source]
Great article. Modern C++ has come a really long way. I think lots of people have no idea about the newer features of the standard library and how much they minimize footguns.
replies(2): >>45268114 #>>45268712 #
1. Symmetry ◴[] No.45268712[source]
I eagerly await the day when they do away with the distinction between ".cpp" and ".hpp" files and the textual substitution nature of "#include" and replace them all with a proper module system.
replies(2): >>45272166 #>>45344434 #
2. alextingle ◴[] No.45272166[source]
Modules are a disaster.

It's hard enough to get programmers to care enough about how their code affects build times. Modules make it impossible for them to care, and will lead to horrible problems when building large projects.

3. 1718627440 ◴[] No.45344434[source]
The distinction between *.cpp and *.hpp is purely convention, the compiler does not care at all.