In Zig, it seems that we can use a comptime generic template inside itself:
fn Foo(comptime T: type) type {
return struct { self:*?Foo(T) };
}
Please Login to reply.
No replies yet.