3 ms·
D has similar comptime capabilities if I recall correctly and proceeds Zig by almost 2 decades or so.
by vlovich123 1y ago
D has similar comptime capabilities if I recall correctly and proceeds Zig by almost 2 decades or so.
- IshKebab 1y agoI 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.
- vlovich123 1y agoI’m not a D programmer but I remember talks by Alexandrescu where he was arguing for this capability in C++ and ultimately one of his stated reasons why he switched from C++ to D Look up static if - AST manipulation in native D code.