We have traits at home(axelmagn.com)
40 points by Ygg2 | 14 comments
A blog post proposing a convention for compile-time Traits in Zig as comptime structs of functions, compared with interfaces/vtables and comptime duck typing.
1 story tagged polymorphism, newest first.
40 points by Ygg2 | 14 comments
A blog post proposing a convention for compile-time Traits in Zig as comptime structs of functions, compared with interfaces/vtables and comptime duck typing.