Skip to content

re: A New Coding Style for Switch Statements in JavaScript/TypeScript VIEW POST


I've actually always coded multi-line switch statements like that because of the scoping and it's easier to read IMO.

I've always been confused as to why it doesn't follow the same rules of an conditional / loop structure, requiring braces for multi-line.

code of conduct - report abuse