Skip to content

Comment on When static makes your C code 10 times fasterparent

Comments

Yes, but you would need way fewer of such phrases than you need now. Making the exceptional case take more code is the way to go, IMO.

Many languages also support something like

  case 1,2,4:
or even
  case 1-10, 20-22, 34:
That further decreases the need for falling through.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.