this post was submitted on 22 Oct 2023
620 points (95.7% liked)

Programmer Humor

32561 readers
416 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

2, but I'm incredibly embarrassed to say that I've had to do 9 before

[–] [email protected] 10 points 1 year ago (1 children)

9 is objectively better if you have untrusted inputs and need a stable failure mode.

[–] [email protected] 2 points 1 year ago

That was precisely the reason. I prefer strongly typed languages languages, so it just felt gross to write that