|
|
|
|
|
by wvenable
2229 days ago
|
|
When I learned C, it was drilled into us that the proper way to implement all the data structures and things was with abstract data types. https://www.edn.com/5-simple-steps-to-create-an-abstract-dat... And then you have nicely "namespaced" functions that operate on those abstract pointers and your code is isolated from the implementation and you don't accidentally depend on some implementation detail you shouldn't. But ultimately this is all just informal OOP. Objects/classes are just a natural way to organize programs. |
|