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

Indeed, OOP and FP both allow and encourage attaching invariants to data structures.

In my book, that's the most important difference with C, Zig or Go-style languages, that consider that data structures are mostly descriptions of memory layout.





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

Search: