Why use goto when you can throw exceptions to escape nested for loops?

@fiah@discuss.tchncs.de
link
fedilink
English
41Y

exceptions are just fancy gotos

@wvenable@lemmy.ca
link
fedilink
English
11Y

Exceptions are fancy returns. Everything else is fancy goto, including returns…

katy ✨
link
fedilink
English
11Y

Why use try/if/catch when you can use try/if/switch/catch?

@speaker_hat@lemmy.one
link
fedilink
English
1
edit-2
1Y

Why throwing an exception without a message, when you can use 0/0

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
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog