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

OO and Functional are not the only two styles of programming out there. There's actually Functional and Imperative (and maybe others?), with OO being an additional concept that gets tacked onto both functional and imperative languages.


OO exists on top of the imperative paradigm, never the functional one. If you disagree, please define OO.


1. OO has no precise and universally accepted definition. http://www.paulgraham.com/reesoo.html

2. Parameterized modules in Erlang can be seen as a form of lightweight functional OOP.

http://www.lshift.net/blog/2008/05/18/late-binding-with-erla... http://www.erlang.se/workshop/2003/paper/p29-carlsson.pdf


http://en.wikipedia.org/wiki/Common_Lisp_Object_System

"Sweeping generalizations are always bad" :)


From what I understand, CL is not a functional language. It can be used as such, but is not necessarily one.


Common Lisp is a multi-paradigm language, but its OO features can be used in a functional style.




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: