rgherdt
Re:Anonymous Recursive Functions in Racket
on Sunday September 07, 2025 @01:58PM (#45160586)
One strategy is by "tracing" a function call:
Re:Anonymous Recursive Functions in Racket
on Sunday September 07, 2025 @01:27PM (#45160242)
That doesn't work for mutual recursion, what is quite common in Scheme programs. Besides, tail call optimization is not only useful in recursion.
May I quote the first sentences from Scheme's R7RS standard that relates to this topic:
"Programming languages should be designed not by piling feature on top of feature, but by removing the weaknesses and restrictions that make additional features appear necessary. Scheme demonstrates that a very small number of rules for forming expressions, with no restrictions on how they are composed, suffice to form a practical and efficient programming language that is flexible enough to support most of the major programming paradigms in use today."