|
|
|
|
|
by preg_match
11 days ago
|
|
You can build okay abstractions and then to maintain them you have a pinky-promise system so it doesn’t matter. You basically can’t build any abstraction in C because you can’t make a guarantee about… well… anything. Anyone at any point can just break your abstraction. And they will. At 100 lines of code maybe you can see that they don’t, but most projects are bit larger than that. Even very basic abstractions possible in basically every language, like say a type that holds JSON text, is not possible in C. |
|
Update: In fact, you can also build quite reliable abstractions around incomplete structure types. Those abstractions are better than what C++ adds, where the abstractions in the header are all very fragile.