Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jzwinck
· 10y ago · 0 comments
That explicit tail recursion syntax is pretty gross. Is there a precedent in any other language?
Comments
[–]
Havvy
10y ago
Rust has plans for a `become` operator for tail call optimization.
[–]
endgame
10y ago
Clojure's recur is kinda-close, I guess?
[–]
preek
10y ago
It is, but Clojure uses it, because it cannot really do Tail Call Optimization due to constraints on the JVM. Therefore "recur" is required to keep the Stack from overflowing.