|
|
|
|
|
by thezipcreator
593 days ago
|
|
Just `{}` means a code block; in Zig you could do something like const c = blk: { const x = 5; break :blk x-3; }; // c = 2
just having an empty block `{}` is exactly that—an empty block of type `void`. having a dot or something else distinguishing it from a block is necessary in order for it to not be that. |
|