Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TO ELSE OR NOT TO ELSE?
#3
Yep, that function name is very poor :/ that is a good catch.

I really meant to give it another name like def make_decision(number), because what I was wondering was that really good programmers in python never use else statement. However, the creators of Golang did recommend always checking/log for errors, which else statements help you do.
Reply


Messages In This Thread
TO ELSE OR NOT TO ELSE? - by rxndy - Apr-27-2019, 02:04 AM
RE: TO ELSE OR NOT TO ELSE? - by nilamo - Apr-29-2019, 10:03 PM
RE: TO ELSE OR NOT TO ELSE? - by rxndy - Apr-30-2019, 02:11 AM
RE: TO ELSE OR NOT TO ELSE? - by buran - Apr-30-2019, 07:13 AM
RE: TO ELSE OR NOT TO ELSE? - by rxndy - Apr-30-2019, 11:42 PM

Forum Jump:

User Panel Messages

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