Re:Crabtime: Zig's Comptime in Rust
by cgh on Saturday March 22, 2025 @01:40PM
(#43447324)
You return the type directly. You can then declare things to be of this type. Eg, from the Zig docs, here's how to construct a generic List type (note the comptime declaration of the generic parameter):
[ Parent
| on HN ]
There are no comments on this comment yet.