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 on the front page, newest first. Scroll down to watch the site change over time.
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.