|
|
|
|
|
by samatman
593 days ago
|
|
One will quickly become accustomed to the .{} pattern learning Zig. It's used for struct constructors: const a_struct: StructType = .{ .foo = "baz"};
As well as union initialization. So .{} is a struct constructor for a struct where every field has a default value, which chooses all of those fields. |
|