Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sb8244
· 6y ago · 0 comments
What does "guarantee" mean here? If you end a function in BEAM with another function call, it's TCO.
Comments
[–]
bad_login
6y ago
Tail Call Optimization is an optimization done by the compile/vm that replace (in assembly terms) a CALL by a JMP. Therefore removing a call stack.
[–]
sb8244
OP
6y ago
Correct. BEAM does real TCO as far as I'm aware. LYSE has a blurb about it and seems to agree (
https://learnyousomeerlang.com/recursion
).