Re:Zig's Comptime Is Bonkers Good
by nialv7 on Tuesday January 07, 2025 @04:33AM
(#42620842)
one thing you can reason about a function is: does it exist at all? if you don't have parametricity, you can't even be sure about that. in Rust, as long as your type satisfies a generic function's bounds, you can be sure instantiating that function with this type will compile; in C++ you don't have that luxury.
[ Parent
| on HN ]
There are no comments on this comment yet.