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
Show parent comment
1
u/divad1196 Jan 22 '26
I never said that the same optimization cannot be applied. That's the opposite of what I said.
To make my point in one sentence: loops can have the same level of optimization as (tail) recursion.
I made the statement because the previous comment seemed to say that loops can never be as optimized, which is wrong.