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

I think you are exactly right. There is a huge difference between data-oriented and behavior-oriented parts of a program. OOP is only a great tool for the latter but it does allow for immutability besides it, it is not either-or.

Wrap the behavior in classes and have data as data. Hopefully this will be indeed the direction taken by Java with its records and other new TBD features.



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

Search: