Chapter 2: Q35E (page 172)
Question: Can we use the tail-call optimization in this function? If no, explain why not. If yes, what is the difference in the number of executed instructions in f with and without the optimization?
Short Answer
Yes, tail-call optimization can be implemented in this function. Only one instruction will be reduced with optimization.