Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by kijin

3 years ago

It's called

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

these days. :)

2 comments

kijin

Reply

pieter_mj  3 years ago

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).

  • orthoxerox  3 years ago

    I've always preferred On Error GoTo Hell

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities