Files should be named to clearly reflect their primary contents: 1. When a file contains a single primary type: - Name the file exactly after the type
Files should be named to clearly reflect their primary contents:
Example:
// Good: HTTPThread.zig
const HTTPThread = @This();
// Bad: http_thread.zig
pub const HTTPThread = struct {
// Good: processDependencyList.zig
// Bad: process.zig (too generic)
This convention improves code navigation, maintains consistency, and makes the codebase more intuitive to work with. It also helps prevent confusion when multiple files could potentially have similar generic names.
Enter the URL of a public GitHub repository