3 ms·
In terms of syntax and semantics, initialization in C++ is rather complex and subtle, perhaps the most complex part of C++ (yes, more so than templates, because
by formerly_proven 6y ago
In terms of syntax and semantics, initialization in C++ is rather complex and subtle, perhaps the most complex part of C++ (yes, more so than templates, because templates-the-language-feature is not that complex, it's the way libraries like Boost and the STL use them that's complicated).
The good thing about the STL additions is that you can simply ignore them, as they are not part of the core language, just like people have ignored iostreams since the 90s.
- UncleMeat 6y agoInitialization is admittedly a tremendous mess. There are so many ways to screw it up it is ridiculous. But this is really a problem with some old old old decisions and backwards compatibility rather than an issue with new complexity.
- gpderetta 6y agoto be fair the interactions between brace initialization and initializer lists is a completely new mess.
- tsimionescu 6y agoWell, initialization lists have added quite a bit of complexity to that problem. So have move semantics, to a lesser degree.