3 ms·
> Does Zig offer (guaranteed) tail call optimisation? Yes[1]. You can use the @call builtin with the .always_tail modifier. @call(.always_tail, foo, { arg
by messe 1y ago
> Does Zig offer (guaranteed) tail call optimisation?
Yes[1]. You can use the @call builtin with the .always_tail modifier.
@call(.always_tail, foo, { arg1, arg2, ... });
[1]: https://ziglang.org/documentation/master/#call https://ziglang.org/documentation/master/#call