3 ms·
Agreed. Recursion and first-class functions are something that most CS students know way too little about.
by newt0311 18y ago
Agreed. Recursion and first-class functions are something that most CS students know way too little about.
- eru 18y agoYou can also remove (explicit) recursion --- which almost the same as removing points in practise.
- newt0311 18y agoNot quite. The Y combinator does real work. Its not just an extra point attached at the end. Furthermore, getting rid of implicit recursion does not make one a better programmer (imho).
- eru 18y agoBut it makes your programs easier to read in many cases. Abstracting the control flow with combinators like filter, map and other folds also tends to make my programs less error prone.
- eru 18y agoWhy should the Y combinator be a point attached at the end? Do we talk about the same 'pointfree programming'?