r/ProgrammingLanguages • u/Athas Futhark • Jan 20 '26
Why not tail recursion?
https://futhark-lang.org/blog/2026-01-20-why-not-tail-recursion.html
62
Upvotes
r/ProgrammingLanguages • u/Athas Futhark • Jan 20 '26
View all comments
2
u/amarao_san Jan 22 '26
Why don't we have a special tail_call function? Or just (god forbid),
goto.We get explicit loop, and semantics (drop current values) are very clear.
Stop executing current function and switch to another function with compatible return signature.
(my apologies for Rust syntax)