2 ms·
> The flexibility of Zig's comptime has resulted in some rather nice improvements in other programming languages. Compile time function execution and functions
by WalterBright 1y ago
> The flexibility of Zig's comptime has resulted in some rather nice improvements in other programming languages.
Compile time function execution and functions with constant arguments were introduced in D in 2007, and resulted in many other languages adopting something similar.
https://dlang.org/spec/function.html#interpretation https://dlang.org/spec/function.html#interpretation