Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's older than C. But yes, C does module encapsulation.

C is capable enough to program in a way that is basically OOP and without using non-idiomatic code. The C++ object system wasn't created in a vacuum.



I like programming OOP in C, because everything is explicit and you can seamlessly transit between different paradigms, and you can be actually creative with inheritance, which is something you can't do when your vtables are created automatically.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: