May-05-2021, 06:34 PM
(May-05-2021, 06:22 PM)deanhystad Wrote: I do not understand your example, or the linked full example, at all.
A fallthrough statement transfers control to the next case. in this case, the else clause that says "you either didnt give me an arg, or it wasn't an integer. So theres absolutely no reason for the program to carry on after that. The fallthrough doesnt have to end a program, it just tells the program to go ahead and jump to the next case
It's a principle from go for case switches. I think it would work wonderfully in python conditionals.