4 ms·
To me, functional programming's advantage comes from avoiding reasoning about state. Everything else is gravy. Beyond that, it's very easy to go down a rabbit
by jowiar 11y ago
To me, functional programming's advantage comes from avoiding reasoning about state. Everything else is gravy.
Beyond that, it's very easy to go down a rabbit hole of terminology. Javascript programmers write functors all the time, but I don't know if I've ever seen the word "functor" written in a JS context by anyone other than raganwald. They're just functions, and the fact that they return functions is damn useful.
- bgar 11y agoYup I've never seen functors mentioned in anything JS-related. I bet there's more Haskellers writing Scala than JavaScript though. Being pedantic: functors don't return functions, functors let you map over structures.