3 ms·
Why is it an issue though? Recursion is an optional thing some programmers like using. It's not necessary. edit: rather than downmod me to -1 for stating a fac
by axod 16y ago
Why is it an issue though? Recursion is an optional thing some programmers like using. It's not necessary.
edit: rather than downmod me to -1 for stating a fact, why not reply?
- smanek 16y agoThat's like saying integers are an optional thing, and it's no big deal if your programming language doesn't have them. True, they aren't necessary (look at peano arith or pure lambda calc) - but it sure makes things a lot easier. It's much more concise and intuitive to write some search or divide and conquer algos recursively than imperatively.
- axod 16y agojavascript doesn't have an integer type. Possibly it makes things easier for some algorithms, but as I said, it is optional. It's not rocket science to rewrite any algorithm that relies on recursion to not need it.