Open
Description
We might consider a lint to encourage the use of a logical-or rather than the equivalent empty case logic.
BAD
switch (shape) {
case Square():
case Circle():
print('Symmetric shape');
default:
print('Asymmetric shape');
}
GOOD
switch (shape) {
case Square() | Circle():
print('Symmetric shape');
default:
print('Asymmetric shape');
}