393
you are viewing a single comment's thread
view the rest of the comments
[-] Buddahriffic@lemmy.world 2 points 5 months ago

Yeah, I wish C++ had function/scope epilogs and labeled loops/breaks, too. Those are the cases where the "never use goto" rule can be broken to make better code than adding all of the code that would be required to handle it the "right" way (setting up early exit flags and if statements after each level of nested loop to check the flag).

this post was submitted on 30 May 2024
393 points (94.6% liked)

Programmer Humor

32443 readers
883 users here now

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

Rules:

founded 5 years ago
MODERATORS