Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The narrative in Why Functional Programming Matters (“WhyFP”) is that it is not enough to simply remove features, but to take advantage of their removal to add other, more powerful features.

The paper gives laziness as an example. It’s made possible by idempotency. Which is made possible by the removal (or careful management) of side-effects. Which then allows certain otherwise impossible ways to express infinite data structures.

http://www.cse.chalmers.se/~rjmh/Papers/whyfp.html



Which in turn allows more modular code. I translated an example from Why FP using Python here: http://satvikberi.com/2014/10/13/functional-programming-usin...




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

Search: