問題:
Very simply, what is tail-call optimization? 很簡單,什麼是尾叫優化? More specifically, Can anyone show some small code snippets where it could be applied, and where not, with an explanation of why? 更具體地說,任何人均可以顯示一些小的代碼片斷,在何處能夠使用它,而在何處不能夠,並解釋其緣由? app
解決方案:
參考一: https://stackoom.com/question/1Iti/什麼是尾叫優化參考二: https://oldbug.net/q/1Iti/What-Is-Tail-Call-Optimization