| > Then why does NASA consider it unsafe for mission critical code? They also proscribe unbounded iterations (point 2). In any case, NASA’s guidelines for mission-critical code are not necessarily good guidelines for general software engineering, given the constraints involved. It’s also worth noting that recursive solutions are probably more amenable to static analysis and automated theorem proving. > How about unknown potential stack size? If stack size is a problem, try an iterative solution. > How about factoring a large number with recursion? Go with iteration. You keep editing your answer to add more cases where iteration is the way to go. I’m not disputing there are use cases where iteration is appropriate. |
More like they're using an old Fortran 77 environment which doesn't support recursive functions.