Python Forum
feature request: ternary fallthroughs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
feature request: ternary fallthroughs
#5
(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.
Reply


Messages In This Thread
feature request: ternary fallthroughs - by rexrf - May-05-2021, 12:57 PM
RE: feature request: ternary fallthroughs - by rexrf - May-05-2021, 06:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python on a ternary computer Skaperen 0 1,615 Jun-20-2020, 02:21 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020