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.
4 stories tagged comptime, 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.
441 points by JadedBlueEyes | 180 comments
A blog post by matklad explaining the deliberate restrictions of Zig's comptime feature, such as no host leakage, and how it stays expressive despite them.
440 points by klaussilveira | 167 comments
The crates.io page for crabtime, a Rust procedural macro that evaluates inline Rust code at compile time to generate code, similar to Zig's comptime.
414 points by todsacerdoti | 218 comments
Blog post by Scott Redig explaining Zig's comptime metaprogramming feature through six different conceptual views, with examples.