Comment on I wish
robotica@lemmy.world 1 year 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 1 year 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 1 year ago
Teach me