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
2
u/LordRybec Oct 19 '26
You should learn Haskell. That should help you separate "functional" from structured procedural programming. Having functions does not make a language "functional". In programming terms, "functional" refers to functions in terms of math not in terms of subroutines. Programming borrowed the term "function" from math and then blindly applied it to subroutines due to largely superficial similarities. What you view as "functions" are not actually functions. They are programming subroutines that we've incorrectly applied the term "function" to. In a programming context, when you say "function" we all understand what you mean. But when you say "functional", that means (even in programming terms) languages modeled after actual mathematical functions rather than just programming subroutines. Languages like C and C++ are not even remotely "functional" languages and do not use "functional programming". What they use is called "structured programming", which is a subset of imperative programming.
"Procedural programming" technically includes structured programming and functional programming, so it's not a useful distinction here. Structured programming includes subroutines, functions (by the mathematical definition), loops, etc..., which both structured imperative languages and functional languages both have. So C is procedural but so is Haskell, Lisp, and other functional languages. The correct term here is imperative. C is imperative, Haskell is functional. Both are procedural. (Technically functional languages are also structured, but we don't generally called them that. The term "structured" was originally used in programming to distinguish between functionless languages like assembly (which also doesn't even have formal loops) and some versions of Basic and languages like C that have functions and formal loops, all of which are imperative.)
Anyhow, if you say "functional" in terms of programming languages, that term means languages like Haskell, Lisp, and others. It does not mean languages that have subroutines which we've collectively applied the term "function" to, even though they are rarely actually true functions. So if you insist on using the term incorrectly, expect to continue being corrected and misunderstood.
I'm not trying to be rude here, but when people within a community insist on continually using well established terminology incorrectly, it hurts all of us.