[swift-evolution] [Idea] Wrap switch cases in curly braces

Taras Zakharko taras.zakharko at uzh.ch
Thu Jul 7 15:46:30 CDT 2016


I always wrap my case blocks in curly braces. Personally, I agree with G.B. that the switch syntax seems inconsistent at best. While there are labels and limited form of goto in Swift, case labels don’t act anything like that. I’d prefer symmetry with if by having obligatory braces. 

— Taras




More information about the swift-evolution mailing list