2 ms·
Zig recently added "continue" to labeled switch[0], which re-evaluates the switch with a specified new value, pretty neat for state machine code. I'm tempted to
by fuhsnn 2y ago
Zig recently added "continue" to labeled switch[0], which re-evaluates the switch with a specified new value, pretty neat for state machine code. I'm tempted to sneak that into my C2Y implementation.
[0] https://ziglang.org/documentation/master/#Labeled-switch https://ziglang.org/documentation/master/#Labeled-switch