16 Jul
2021
16 Jul
'21
11:44 a.m.
Thomas Grainger writes:
Another example, is a cash point (ATM) won't give you your money until you take your card
That ATM is effective in enforcing the desired behavior. In Python you would usually use an exception to force handling. Returning status codes, or couples of status codes and values, isn't nearly as effective. And a (status, value) couple does nothing to encourage checking the code over (value, status). Steve