this post was submitted on 09 May 2024
460 points (92.4% liked)

Programmer Humor

32572 readers
596 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
[–] Miaou@jlai.lu -1 points 6 months ago (1 children)

goto is used in C for this exact kind of early return management. The person you answered to does not maintain code I think

[–] avidamoeba@lemmy.ca 5 points 6 months ago (1 children)

goto cleanup is not the same as return. I didn't badmouth goto cleanup.

[–] Miaou@jlai.lu 1 points 6 months ago

This is virtually the same thing with a different keyword, I'd like to hear where you (and the down voters) draw the line.