4 ms·
You can still have "C with Classes" in modern C++ if you really want that. Just set a style guide that limits your code to that. There's more viable coding sty
by CuriousCosmic 3y ago
You can still have "C with Classes" in modern C++ if you really want that. Just set a style guide that limits your code to that.
There's more viable coding styles in C++ than I can honestly even bother to count. There's absolutely no reason to limit the language to one specific coding style when doing so would alienate large groups of users and you can set those limits yourself on your project.
- JohnFen 3y agoThis is what I do for my own projects, but it's not a viable thing to do with my work projects since I don't set the style.
- eps 3y agoYeah, I know and that's how I've been using it for the past decade, but it's not that simple. The language keeps changing and this forces adding cruft to the code if one wants to use newer compilers. For example, there are cases where the existence of move semantics necessitates adding some boilerplate when working with STL containers. There's no functional reason for it, just something to please the compiler.