DEV Community

Discussion on: Which one is better? OOP or FL?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Why not both? Also, FP can avoid many errors.

Collapse
 
baenencalin profile image
Calin Baenen

So can OOP, as long as you take the same functional approach. Right?

From what I've seen, if you're playing your cards right, you can do all of what you want in FP in OOP.
Is this not correct?

Also, why not both? I just wanted to contrast them, and define them separately, since one is possible in the other, but not vice versa.