Closed
Description
Before
switch a
when b
foo()
when c, d
bar()
else
baz()
After
switch a
case b
foo()
case c, d
bar()
default
baz()
- Less indentation
- Mirrors JS keywords
- No ambiguity against
if
-else
(switch..when..then..if..then
on one line not working #562)