4 ms·
> But just as you can do object-oriented programming in C (a language really not designed for it), you can do functional programming in a lot of languages not r
by codygman 12y ago
> But just as you can do object-oriented programming in C (a language really not designed for it), you can do functional programming in a lot of languages not really designed for it too.
This statement is only true depending on what you mean by OOP. For instance see this post[0] implementing minimal OOP with scheme.
0: http://robots.thoughtbot.com/you-could-invent-objectoriented-programming http://robots.thoughtbot.com/you-could-invent-objectoriented...
- einhverfr 12y agoThis is also true. OOP in Java is certainly not the same as OOP using CLOS, and not the same as Perl and Moose. But there is a common thread through these. Namely with OOP, you are tying structure and behavior together so that behavior can encapsulate structure. OOP, like FP, isn't so much "a paradigm" as a "family of paradigms," one or more per language.