Re:Ziglings: Learn the Zig programming language by fixing ti...
by littlestymaar on Sunday February 14, 2021 @01:04AM
(#26130072)
> But again, if you have a large codebase written in Zig,
At this point it means you're probably Andrew himself because the Zig compiler is the only large Zig codebase out there;)
Re:Ziglings: Learn the Zig programming language by fixing ti...
by jorangreef on Sunday February 14, 2021 @02:15AM
(#26130343)
If your project is small, just run `zig fmt` on the command line.
If you have a large codebase, you can just incorporate it into your build process (similar to how clang-format and clang-tidy are used in CMake projects).
But again, if you have a large codebase written in Zig, you've probably already configured your editor to run `zig fmt` on save :)