Comment on Functional Programming in PythonparentComments−snapetom6yI'd like to know what happens to can_buy_stuff and the rest of the code when user is Not None and balance_credit is -1.−nurettin6yuser can't buy stuff and one unfortunate developer will hunt the bug that charged someone with negative credit.−BiteCode_dev6ycan_buy_stuff is then False.
Comments
I'd like to know what happens to can_buy_stuff and the rest of the code when user is Not None and balance_credit is -1.
user can't buy stuff and one unfortunate developer will hunt the bug that charged someone with negative credit.
can_buy_stuff is then False.