Hacker News new | ask | show | jobs
by yread 2236 days ago
I came across this gem recently:

    catch (Exception up)
    {
        throw up;
    }
Truly genius code
3 comments

  try
     ToastTheGenius;
  except
   On Glass: Exception do
     raise(Glass);
  end;
Or in Python:

  except Exception as the_roof:
      raise the_roof
I'm... going to have to use this. A lot.