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

There are structs in C, as well as unions, but they are data only - no methods.


Well, function pointers exist in C, though they are certainly a clumsy replacement for having methods (or first-class functions / closures / currying) built into the language.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: