Default Field Values
Initialize fields without repetition.
Repeating Yourself
If most instances start the same way, retyping every field is tedious. Zig lets a field carry a default value built into the type.
Give a Field a Default
Add = value after the field type. Any instance that omits that field gets the default automatically.
const Config = struct {
retries: u8 = 3,
};