this post was submitted on 30 Sep 2023
943 points (96.4% liked)

Programmer Humor

32410 readers
709 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] 8 points 1 year ago (2 children)

Why is it more dangerous to check before the loop?

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

Perhaps he's saying relying on the break condition that's inside the loop.

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

It's not - it just feel more dangerous somehow.