4 ms·
Aye, same here. I don't mond C++ evolving into some thing of its own beyond all recognition, but there is a distinct lack of modern "C with Classes" language.
by eps 3y ago
Aye, same here.
I don't mond C++ evolving into some thing of its own beyond all recognition, but there is a distinct lack of modern "C with Classes" language. Basically, C on steroids. There are attempts at that, but none is perfect and/or has enough traction to be viable.
- WanderPanda 3y agoI just want a C with templates (and function overloading)?
- eps 3y ago"this" and virtual functions are pretty damn useful too.
- CuriousCosmic 3y agoYou 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.
- josephg 3y agoI’m excited for Zig for this reason. I’ve been writing a lot of rust lately and - well, it’s fine. Good at what it’s trying to do. But Zig seems a lot more fun. Much more in the spirit of C.
- eps 3y agoTo each their own, but I find zig syntax to be on the ugly side and the resulting code unelegant.