Hacker News new | ask | show | jobs
by Akronymus 465 days ago
Ah, yeah, i mixed up my thoughts and thought it was about making recursive functions into non-recursive ones rather than TC'd ones. Specifically this part tripped me up, I guess "exchanging stack allocation for heap allocation"

Altough, technically my "solution" would work for making it tail calls anyways, by replacing the looping part with tail calls. But I digrees