@p1xelHer0 Recursion may look cleaner, but it is usually less efficient than iteration, regardless of the programming language. It is so because calling a function has an overhead. Moreover, there is a risk of a call stack overflow. A loop doesn’t have these limitations.
— Vladimir Kameñar (@KamenarVladimir)
Dec 6, 2023
from http://twitter.com/KamenarVladimir
via IFTTT