Get the latest tech news
Comptime as Configuration
Karl Seguin's Blog - A mix of coding and creative writing
In my Basic MetaProgramming post, we looked at how a few of Zig's built-in functions and std.meta namespace can help us write this kind of code. The return-type check is there to make it clear that the custom handle cannot return an error (or anything else). Like httpz, it's possible to extend the functionality of ztl and add a application-specific context.
Or read this on Hacker News