this post was submitted on 30 Sep 2023
914 points (96.3% liked)

Programmer Humor

32203 readers
482 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
[–] oce@jlai.lu 8 points 1 year ago (2 children)

Why is it more dangerous to check before the loop?

[–] racketlauncher831@lemmy.ml 6 points 1 year ago

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

[–] AMillionMonkeys@lemmy.world 4 points 1 year ago

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