I agree, but I was mostly commenting on how it seems like FP designs are usually more grouped by behavior while OOP is more grouped by structure? Meaning in the
toJson()
example, in FP design all the classes with a
toJson()
method would have it defined maybe in a
.json
package or something, rather than spread about in different classes.