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

There's a reason most complex software uses OOP. Functional programming is nice, sometimes, but as projects grow it ends up using patterns that do essentially the same thing as OOP. A monad is basically an OOP object.

To see a language that is purely OOP but also forces you to be very explicit about accessing state, check out Pony language.



> A monad is basically an OOP object.

i think it's the other way- an OOP object is a poor imitation of monadic algebra that cannot be generalized with mathematical rules to guarantee certain properties.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: