Re:Zig's Comptime Is Bonkers Good
by tines on Tuesday January 07, 2025 @01:09PM
(#42625388)
Not really an "also", "implements" is just syntax sugar for what the GP is saying.
[ Parent
| on HN ]
Sure, but it's the same thing in 10x fewer words. Having parametric generic types that accept constraints allows your functions to have the best of all worlds.
So a language _with_ that is superior. All zig needs to do is add some way to allow for constraints.