2 ms·
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 supp
by Someone 5y ago
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.