3 ms·
Which is similar to the scenario where you ignore all exceptions and your test script got into a bad state. :) Much as you could write this in Java: catch
by wonderzombie 14y ago
Which is similar to the scenario where you ignore all exceptions and your test script got into a bad state. :)
Much as you could write this in Java:
catch (Throwable t) {
throw new RuntimeException("oh noes"); // or whatever
}
You could write this in Go:
if err != nil {
panic("oh noes")
}
- reddit_clone 14y agoBut I can do the former for a whole block of code but have to do the later for each significant line of code. They are are not the same.