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

Avid Amoeba
link
fedilink
56M

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

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

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 149 users / day
  • 308 users / week
  • 697 users / month
  • 2.84K users / 6 months
  • 1 subscriber
  • 1.57K Posts
  • 34.8K Comments
  • Modlog