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

> Data Structures are more like Types than Classes. Any useful program is going to have Data Structures and Algorithms that operate on it. OP v FP are just different opinions on how that should be organized, either combined into a single object or separated into types and functions.

What is the difference between a type and a class though? Classes have modes of interaction through their interfaces, types can only be interacted with using specific operators. To me they are two sides of the same exact coin.



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

Search: