News for hackers. Stuff that matters.
Re:My Favourite Diff by vortico on Monday April 06, 2020 @01:21AM (#22791083)
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; }
Re:My Favourite Diff by enriquto on Monday April 06, 2020 @02:58AM (#22791437)
...and hereby I give back my programming license and go back to civil life.
Re:My Favourite Diff by pintxo on Tuesday April 07, 2020 @09:27AM (#22802987)
This might result in another fallthrough scenario though, wouldn't it?
Re:My Favourite Diff by vortico on Tuesday April 07, 2020 @04:26PM (#22807139)
No, because `c` can't be 1 and 2 at the same time.
Re:My Favourite Diff by pintxo on Wednesday April 08, 2020 @04:18PM (#22816623)
In this specific example. But you cannot rule it out in general.