Python Forum
Where is "switch" statement ? Do nobody needs it ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where is "switch" statement ? Do nobody needs it ?
#9
(Nov-20-2017, 11:57 AM)Kebap Wrote: I would even go as far to have the options be calculated from the dictionary, so if you change the dict, the question will automatically mention the new function as an option as well, and you don't have to think about changing two places.
I agree for production/real-life code, but this was meant as merely an example :-)
Reply


Messages In This Thread
RE: Where is "switch" statement ? Do nobody needs it ? - by buran - Nov-20-2017, 12:01 PM

Forum Jump:

User Panel Messages

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