r/C_Programming • u/Ok_Reserve996 • Oct 18 '26
C limitations
Hi all,
I am currently learning c++. Its okay. Not sexy but also not as bad as some say.
The reason I am learning c++ is that I have read that C has limitations as soon as a project gets more complicated. For example, if you make a scientific calculator with many features like graphs etc.
Trading engines/tools are also not recommended to programm in C.
Since I have not learned C and have only read from some old forum posts etc, I cannot confirm/deny these facts.
I am aware that "everything" is possible and that C++ comes with QoL improvements especially with Classes. But I assume that doesn't mean that someone has to use C only for kernel work. Embedded is also possible with C++ right?
I would appreciate your thoughts and opinions.
The goal of this post is to understand how and if C could fit me more with my goals and what real advantages or disadvantages C has.
View all comments
Show parent comment
1
u/LordRybec Oct 19 '26
I generally use C99. The only thing I think I'd like to see from C++ in C is namespaces. That said, I code C as if it had namespaces, and I just do NAMESPACE_ as the namespace prefix. That works really well, and it has been a common convention in major C libraries.
If I had to use C++ though, I'd do it similarly to how you do. A lot of C++ features actually make the code larger, not more compact, but features that make it more compact without making it harder to debug wouldn't be a problem for me. (That said, I don't want to have memorize a ton of "syntactic sugar" devices that make code harder to read and only make it faster to type. Faster typing isn't useful, because the bulk of programming time is spent working out logic, which can often be done while typing. So faster typing just means you aren't typing as much during the time you spend working out logic, which doesn't save any actual time.)