Comparing reflection capabilities of C++, Zig and C3(nyr24.github.io) |
Comparing reflection capabilities of C++, Zig and C3(nyr24.github.io) |
i can literally google "zig enum to string" and the first result is a reddit post where the given solution is `@tagName`. i'm ready to write this post off as a low-effort ad for C3
From what I can see the example started from C++, and then comparing how each language would look building it in userland instead.
std.debug.print("{any}\n", .{color});