3 ms·
That explicit tail recursion syntax is pretty gross. Is there a precedent in any other language?
by jzwinck 11y ago
That explicit tail recursion syntax is pretty gross. Is there a precedent in any other language?
- endgame 10y agoClojure's recur is kinda-close, I guess?
- preek 10y agoIt 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.
- Havvy 10y agoRust has plans for a `become` operator for tail call optimization.