Re:Rue: Higher level than Rust, lower level than Go
by int_19h on Monday December 22, 2025 @04:29AM
(#46352550)
You don't need full fledged TCO for that; see Clojure's recur for an example. Zig recently added something similar but strongly typed with match/continue. These all map exactly to a closed set of mutually recursive functions with a single entry point, which is quite sufficient (and then some) to fully replace iterative loops while still desugaring to the same exact code.
[ Parent
| on HN ]
Re:Rue: Higher level than Rust, lower level than Go
by oersted on Monday December 22, 2025 @06:35AM
(#46353345)
Indeed there are more explicit versions of such mechanisms, which I prefer, otherwise there’s always a bit of paranoia about recursion without assurance that the compiler will handle it properly.