News for hackers. Stuff that matters.
Re:Zig 0.16.0 Release Notes by fredyr on Tuesday April 14, 2026 @02:04PM (#47769037)
This sounds interesting to me - could you elaborate a little on what things are in those proposals?
Re:Zig 0.16.0 Release Notes by mihaelm on Tuesday April 14, 2026 @02:33PM (#47769440)
Sure, this is the issue tracking the work: https://codeberg.org/ziglang/zig/issues/30677

The idea is to offer some kind of CLI parsing in the std. It says minimal, but the discussion also veers into some more advanced options.

The discussion resulted in two PRs (that I know of):

- Type-driven: https://codeberg.org/ziglang/zig/issues/30677

@dotcarmen extracted it into a package (https://codeberg.org/dotcarmen/clip) so people could more easily try it out.

- Composition-based: https://codeberg.org/ziglang/zig/pulls/31620

If you're familiar with Rust's clap, it's a bit like derive vs builder API.

You can also see how each approach would look in practice if you inspect the diff for the "tools" directory on the PRs.

Re:Zig 0.16.0 Release Notes by fredyr on Tuesday April 14, 2026 @02:46PM (#47769651)
Thanks!
Re:Zig 0.16.0 Release Notes by anttiharju on Tuesday April 14, 2026 @10:49PM (#47774113)
clap's derive is so nice