|
|
|
|
|
by dhruvrajvanshi
461 days ago
|
|
It's generic system for example, is built on top of comptime. A generic struct is just a function that takes a type as an argument and returns a struct. ```
fn Vec(comptime T: anytype) { return struct {
// ...
}
}``` IMO having a first class generic type parameter syntax is better but this demonstrates OP's point. |
|