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.
2 stories tagged traits, 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.
102 points by woodruffw | 24 comments
A TIL blog post explaining that Rust's #[derive(...)] for traits like Debug and Clone emits #[inline] attributes, shown via macro expansion.