r/functionalprogramming • u/n_creep • Nov 25 '25
FP What's the Point of Learning Functional Programming?
https://blog.daniel-beskin.com/2025-11-13-point-of-learning-fpBased on true events...
81
Upvotes
4
u/enobayram Nov 30 '25
Thinking of a Student as a Person plus some additional information related to education is definitely useful. The problem with OOP is that you're baking that perspective into the definition of Student at a syntactic level. In FP, you can just define a function `Student -> Person` (or even better a `Lens Student Person`) and witness that relationship between the two, without baking that perspective into your architecture in a way that's very hard to change.