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

I’m not convinced you need objects to enforce invariants on your data. Why wouldn't you just use a good type system and type-checker to enforce those invariants? They could check if you're using data in places where they're meant to be, without having to bundle data with procedures.


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

Search: