Y
Hacker News
new
|
ask
|
show
|
jobs
by
vortico
2264 days ago
Are you talking about the `else` being non-symmetric? You don't need it at all. I do this.
if (c == 1) { first case ; } if (c == 2) { second case; }
2 comments
enriquto
2263 days ago
...and hereby I give back my programming license and go back to civil life.
link
pintxo
2262 days ago
This might result in another fallthrough scenario though, wouldn't it?
link
vortico
2262 days ago
No, because `c` can't be 1 and 2 at the same time.
link
pintxo
2261 days ago
In this specific example. But you cannot rule it out in general.
link