I just read about recursive functions and how it uses computer memory. Seems like there is no performance benefit to using recursive functions given that it creates a copy of variables in each iteration. In loops, seems like we just overwrite the variables in each iteration.
Is there any benefit to recursive functions OUTSIDE of making your code easier to read? I am particularly interested in knowing if recursive functions will provide any benefit to computing performance (will my code run either faster or take up less memory).
Thanks!