5 ms·
You are absolutely right, but my point is that when you do modern C++, in the application code, it is very unlikely that you need to use reinterpret_cast in you
by ogoffart 7y ago
You are absolutely right, but my point is that when you do modern C++, in the application code, it is very unlikely that you need to use reinterpret_cast in your code, and therefore you don't need to know all the subtlety about it.
So despite C++ being more complex than C, if you limit yourself to some practical subset, it is actually easier than C.
- seba_dos1 7y agoSame can be (and has been) said about JavaScript. Or C. Or any language with any kind of issues. And it doesn't work in practice.
- Leherenn 7y agoI think it does sometimes? At least for enterprise software. We use both C and C++ embedded as well as C++/Qt for the desktop control system, and we have no issue keeping to a sane subset of C++. There are clearly defined rules and code review does the remaining enforcement. And it's not even hard or time consuming as everyone is pretty much aligned and every small issue can be easily resolved with a quick chat.