News for hackers. Stuff that matters.
Re:Object-oriented design patterns in C and kernel development by 1718627440 on Wednesday August 27, 2025 @02:51PM (#45043495)
> like instantiation with unimplemented functions

I think this is more of an effect of C distinguishing between allocating memory (aka object creation) and initialization, which other languages disallow for other reasons, not because there are not OOPy enough.

Re:Object-oriented design patterns in C and kernel development by ryao on Wednesday August 27, 2025 @08:34PM (#45046980)
Unlike OOLs, C does not enforce contracts around structures (objects). You are free to do literally anything you want to them.
Re:Object-oriented design patterns in C and kernel development by pjmlp on Thursday August 28, 2025 @08:29AM (#45051348)
Including implementing Abstract Data Types, thus everything on the structs is only accessible via functions that enforce the contracts.