News for hackers. Stuff that matters.
Re:Errors in Go: From denial to acceptance by codebje on Tuesday November 27, 2018 @12:11AM (#18539592)

    try {
      MyType x{args, args};
      x.DoSomething();
    } catch (SomeException &e) {
      ...
    }
You can't do much with the x if it didn't construct correctly, so you either need a strategy for a safe default value for x, or you need to bail entirely if an exception occurs.

There are no comments on this comment yet.