4 ms·
Many times I want to program in C or try to debug some open source apps but I'm always reminded why I didn't touch C/C++ since high school: macros, #include, CO
by leaveyou 12y ago
Many times I want to program in C or try to debug some open source apps but I'm always reminded why I didn't touch C/C++ since high school: macros, #include, CONSTANTS, long_identifiers, ugly castings everywhere and cryptic function pointers with the dreaded clockwise spiral rule. I still wonder how the world would look like today if instead of C++ we would have had a C v2 binary compatible with C but with type safety, interfaces and syntax similar to Go, or even this c2lang.org.
- aikah 12y agoD?
- leaveyou 12y agoD is a better C++. My feeling is that many people wanted just a better C (a portable & extensible assembler with a good standard library?).
- pjmlp 12y agoYeah, having gone through latest version of Effective C++, updated for C++14 I have not really sure if I want to step away from JVM/.NET worlds back into C++ that I left in 2005. Working alone in C++ is one thing, but having to read other people's code seems to turn into a mess if you have a mix of C++98, C++11 and C++14 code bases.
- raverbashing 12y agoC is great, but it is very limited. Mainly, it knows almost nothing about data structures (strings and arrays, with the absolute minimum support) Merely reshuffling the syntax/grammar but not going deeper is not going to change anything. C++ is, let's say, interesting. But it's always going to be a "bolt-on" addition to C, and keeping the redundancy (should I use open, fopen or a C++ object? when opening devices, open is usually used)