Zig comptime Purpose Guide agents through Zig's system: compile-time function evaluation, comptime type parameters, generics via , type reflection with , and metaprogramming patterns that replace C++ templates and macros. Triggers - "How does comptime work in Zig?" - "How do I write a generic function in Zig?" - "How do I use @typeInfo for reflection?" - "How do I generate code at compile time in Zig?" - "How does anytype work in Zig?" - "How do Zig generics compare to C++ templates?" Workflow 1. comptime basics 2. Generic functions with comptime type parameters 3. anytype — duck-typed compti…