Remix.run Logo
IshKebab 3 hours ago

I guess comptime is a little different but yeah I wouldn't say it fundamentally changes how you think about software.

I wouldn't say that about OCaml either really though. It's not wildly different in the way that e.g. Lean's type system, or Rust's borrow checker or Haskell's purity is.

vlovich123 2 hours ago | parent [-]

D has similar comptime capabilities if I recall correctly and proceeds Zig by almost 2 decades or so.

IshKebab 8 minutes ago | parent [-]

I don't think it's the same. You can do template metaprogramming, but Zig lets you use Zig itself which is a lot nicer.

I'm not a D programmer though so I could be wrong.