2 ms·
Why would the mere existence of some static-eval capability give you that affordance? Researchers have been working on these three things for decades. Yes, “co
by avgcorrection 4y ago
Why would the mere existence of some static-eval capability give you that affordance?
Researchers have been working on these three things for decades. Yes, “comptime” isn’t some Zig invention but a somewhat limited (and anachronistic to a degree) version of what researchers have added to research versions of ML and Ocaml. So can it implement all the static language goodies of Rust and give you dependent types? Sure, why not? After all, computer scientists never had the idea that you can evaluate values and types at compile-time. Now all those research papers about static programming language design will wither on their roots now that people can just use the simplicity and generality of `comptime` to prove programs correct.