Hacker News new | ask | show | jobs
by snapetom 2208 days ago
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.
2 comments

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.