re: The beauty of Functional Programming VIEW POST

re: While I do prefer a FP-esque style of programming, I don't think that the recursive myCount is more readable. It's also less safe, at least as it...

Okay, i agree partially with you, because for many friends is confuse the syntax of the loop reassigning the count value many times
i = i+1, and the math perspective this is dont make sense, in recursive way this is declarative, you express what you want and the recursion make the things, although in many scenarios i prefer using iterative way. Since this is my particular opinion and the example was too confuse, i removed. But yes, with recursion we have other problems

code of conduct - report abuse