News for hackers. Stuff that matters.
Re:Crabtime: Zig's Comptime in Rust by creata on Saturday March 22, 2025 @10:02PM (#43450365)
> would you then say it had generics rather than templates?

I think pcwalton's "generics" vs. "templates" distinction mostly boils down to parametric typechecking, which Zig's design just can't do. (Can it?)

Although, I vaguely remember some example showing that even Rust in some cases allows a type definition X<T> even when there exists a T such that X<T> would fail to typecheck.

There are no comments on this comment yet.