Hacker News new | past | comments | ask | show | jobs | submit login

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.




Yup 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: