Zig's comptime: One Mechanism That Replaces Macros, Templates, and Code Generators
Zig's comptime replaces macros, templates, and code generators with one mechanism: ordinary Zig functions executed at compile time. A look at generics, a worked JSON serializer, and the real costs.