3 ms·
> Zig's comptime permeates the language thoroughly and in fundamental (and IMHO very pragmatic) ways. TANSTAAFL. Compile-time evaluation cannot truly "permeate
by zozbot234 6y ago
> Zig's comptime permeates the language thoroughly and in fundamental (and IMHO very pragmatic) ways.
TANSTAAFL. Compile-time evaluation cannot truly "permeate" a language because most practical languages preserve a phase distinction between compile time and runtime. (This phase distinction is somewhat softened, e.g. in interpreted languages as well as in advanced PL's which include such features as dependent types). For a system programming language like Rust which relies on this clear-cut phase separation, macros and proc macros (as well as `const`-marked expressions and functions) are ultimately more elegant.
- deleted 6y ago[deleted]