2 ms·
Only if you know at compilation time what function(s) you will be calling in a tail recursive manner. If the function you call comes from a parameter or variabl
by ufo 10y ago
Only if you know at compilation time what function(s) you will be calling in a tail recursive manner. If the function you call comes from a parameter or variable (for example, in continuation passing style code) then there is no straightforward way to compile it into a loop.