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

OCaml’s object system is unfairly maligned by its users. It’s unfortunate because object types allow for some of the most useful kinds of polymorphism and people don’t reach for them often enough.

However, OCaml’s first class modules are frequently a useful and serviceable alternative. I think they’re a precise middle ground between what we here call “objects” and “data.”



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

Search: