Python Forum
feature request: ternary fallthroughs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
feature request: ternary fallthroughs
#31
This will not win over any advocates:
Quote:Fallthroughs make sense. they exist. you can read the docs. You're just being a hobgoblin
So far the only examples of fall-through in other languages are C or C derived languages, and there it is only used in a switch block. I grew up being told that fall-through in a switch block was something to guard against and that if you felt like you needed to use fall-through you really needed to rethink your design. As I said before, I see the fallthrough statement in go as proof that Ken Thompson agrees that fall-through was a bad idea in general and should only be used in special cases.

Now if you could site other examples where fall-through is supported, particularly where it is not used in a case statement, it may bolster your proposal. I cannot think of any such example but always like expanding my horizons. It will certainly work better than slinging insults and making vague claims.
ndc85430 and buran like this post
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  python on a ternary computer Skaperen 0 1,609 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