← Back to context

Comment by rzimmerman

3 years ago

Kids today will never know the joy of "On Error Resume Next"

My greatest shame as a young developer was wrapping a Delphi application in an exception handler and re-running itself when it crashed.

  • Nono, this is called "let it crash" philosophy, you just reinvented Erlang and you're actually a genius!

It's called

    try { doSomething(); } catch(e) {}

these days. :)

  • I'm still programming in VBA today. I name the error handling labels try: and catch: and finally: :). My attempt to introduce some modernity into the language (the'try:'-label is obviously obsolete and is a mere indicator).

That’s what shell scripts do by default, so I would argue that kids today actually do know.