3 ms·
Rust has macros. It also has labeled blocks that you can break out of, which are similar to goto except with more nesting required. You could plausibly reduce t
by ameliaquining 2y ago
Rust has macros. It also has labeled blocks that you can break out of, which are similar to goto except with more nesting required. You could plausibly reduce the nesting with a macro though.
In most languages I'd just solve this by ending each block with a call to the next block. The "too many arguments required" problem can be addressed with closures.