News for hackers. Stuff that matters.
Re:Crabtime: Zig's Comptime in Rust by samatman on Saturday March 22, 2025 @03:33PM (#43448037)
The central claim is that Zig's use of comptime is similar enough to templates to conflate them. That's simply incorrect. There's no value in trying to extract information from something which makes such a basic mistake as that, it doesn't contribute to a discussion, it distracts that discussion down a blind alley.
Re:Crabtime: Zig's Comptime in Rust by Ygg2 on Saturday March 22, 2025 @04:35PM (#43448427)
I think it's insightful to some extent. The problems encountered in C++ templates apply to Zig's comptime as well. And their solution seem to be along same lines, i.e. add constraints.

Edit: on re-reading the author doesn't understand why negative traits in Rust are a problem (not is basic boolean operation). I think they are abstracting too much and saying cows should be roughly spherical and water should roughly be a superconductor.