3 ms·
I've ported a small Zig program to C++ and spent a long time and a lot of lines of code on the stuff that comptime can do which C++ cannot.
by anonymoushn 4y ago
I've ported a small Zig program to C++ and spent a long time and a lot of lines of code on the stuff that comptime can do which C++ cannot.
- gavinray 4y agoI'd be curious for examples. In a weird spot where I'm decently familiar with C++, D, and Zig and it would make for good blogpost material to compare comptime implementations for the same thing across languages IMO.
- WalterBright 4y agoI've posted some examples here for D.