Check out this thread if you haven’t already: Multiline IF blocks as expressions?
From the Zig documentation:
All branches of a switch expression must be able to be coerced to a common type.
We’d have a real conundrum on our hands given that you can return values from a switch. For instance, if we assign from a switch statement but could also arbitrarily break them, you could have inconsistent return values (one would be void, the other might be int).
To be clear, when you say “break from a switch”, are you referring to the classic case of fallthrough (which Zig does not have)?