3 ms·
"It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures." —Alan Perlis Functional style in my opinion is abou
by kybernetikos 10y ago
"It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures." —Alan Perlis
Functional style in my opinion is about creating functions that operate on standardized data structures. Class based type systems actively discourage functional style, even when the language gives you a functional veneer over your OO code.
Haskell avoids this problem by using algebraic data types instead of class style types. Clojure avoids this problem by using dynamic typing.
I definitely do not associate 'functional' with static typing.