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) };

}

Reply to this note

Please Login to reply.

Discussion

No replies yet.