[OpenSCAD] Programming in Functional OpenSCAD
togo at of.net
Wed Jan 31 13:09:12 EST 2018
>> I still don't really understand the "this tail
>> recurses" thing.
>From a language user point of view, it can be ignored.
>From an optimization point of view, conventional calls
and returns stack up and grow the stack, but a tail return
can avoid putting a redundant return on the stack.
Another way to think about it is a recursive call can be
a goto, and not grow the stack.
This is unedited.
This message came out of me
via a suboptimal keyboard.
More information about the Discuss