519
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 3 points 1 year ago

Like most things in life, context matters. In the OP it seems like the check function is used specifically so it could raise a PaymentException if the payment hasn't been received... That's not a "forgiveness/permission" context, this is a yes or no question, hence should have been an if.

this post was submitted on 12 May 2024
519 points (97.1% liked)

Programmer Humor

36708 readers
16 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS