Re:Revisiting the design approach to Zig
by skywal_l on Thursday September 08, 2022 @02:51PM
(#32770238)
Ok I get you. The absence of traits (or concept) make documentation and reading the API harder. You see a `comptime T` somewhere and you don't what is expected of this type unless you either read the code in full or just try your type and see if it compiles.
That's a valid point indeed and there's an issue for that: https://github.com/ziglang/zig/issues/1268