DEV Community

Discussion on: Is OOP less descriptive than FP?

Collapse
 
tylors profile image
Tylor Steinberger

As with most things, it depends. FP has a bunch of wordy terms, but the absolute core is composition/modularity backed by math - everything else is layered atop. The same way we use math as a precise way to describe real-life phenomenon, algebraic data types are much more precise and descriptive. OO languages that do not have sum types will never be as descriptive about data IMO, amongst many other things.

After the intro, this talk has about 30 minutes of real-world OO issues I found really useful, and some cool FP-inspired features coming to scala 3 in the last half if that interests you. youtu.be/NY2ZkcYZj54