I'm not sure what you're asking
Nop
doesn't make sense. The block should only evaluate if the case matches. Are we in agreement on that?
No, it doesn't, try 25
aah. I see. missed this part "If break is omitted, the program continues execution at the next statement in the switch statement. " that's really weird. So case without a break is pretty useless.
That's the idea, and it makes the entire switch pretty useless too
I would think it has to do with decidability logic i.e. where logic scoped to a case ends. then replacing with braces rather than colon might be a 💡idea (I think)
But you still need break, braces only protects against variable definition leakage
Обсуждают сегодня