this post was submitted on 22 Oct 2023
601 points (95.6% liked)

Programmer Humor

32568 readers
148 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