Comment on I wish
robotica@lemmy.world 11 months agoDon’t forget that you can have fall-through cases, so you can simplify it even further:
switch (number) { case 1: case 2: case 3: case 4: case 5: ...
Comment on I wish
robotica@lemmy.world 11 months agoDon’t forget that you can have fall-through cases, so you can simplify it even further:
switch (number) { case 1: case 2: case 3: case 4: case 5: ...
UNWILLING_PARTICIPANT@sh.itjust.works 11 months ago
Teach me