I'm not really sure why you need the requirement of infinite sequences to do functional programming, or the restriction of no intermediate variables. Let bindings seem like a nice thing to have.
Re:Functional calisthenics
by crimsonalucard on Thursday October 19, 2017 @07:58PM
(#15512561)
No you're right. I missed the infinite sequences thing. I'm going to reword the post from "all" to "most"
Re:Functional calisthenics
by MiyamotoAkira on Friday October 20, 2017 @02:28AM
(#15513865)
You are right. If you don't follow most of those rules, you are not doing pure FP. My interest on them was because I was writing production code that felt procedural. The rules are there so you can practice with purpose. Once you go into production code, you can discard them, but with knowledge that it will not be because your OOP skills take over, but conscious decisions.
Really if you aren't following <Edit> Most <Edit> of these rules you are not doing functional programming.
The best way to learn about functional is not to follow these rules but to use a functional language that basically enforces these rules. Javascript is not a good language to learn about functional programming.