4 ms·
Yep. It's impossible to have actual modular code in C. A real shock for people coming from higher level languages.
by TheLoneWolfling 11y ago
Yep.
It's impossible to have actual modular code in C. A real shock for people coming from higher level languages.
- xcogiz 11y agoWhat exactly do you mean by modular code in your context? edit: Oh, you probably meant modules integrated directly in the language. I was surprised to read that since modular design is highly successful and useful in C.
- TheLoneWolfling 11y agoNo, I'm not talking about modules. I'm talking about modular code: I mean that in many languages it's at least possible to write code that can be understood fully in isolation. Objected-oriented programming, etc, etc. In C that's impossible. Due to UB being global.