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

I actually have nothing against objects and methods, but that’s a very limited subset of OO. I prefer to use algebraic data types for domain modeling, and giving them methods is totally fine too. But I do prefer them to be immutable in most cases, which is also quite counterintuitive from an OO perspective.


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

Search: