News for hackers. Stuff that matters.
Re:Size cost of C++ exception handling on embedded platforms by exception_e on Monday May 16, 2016 @06:35AM (#11705422)
If the method you're designing is going to throw an exception that wouldn't make sense to handle from a consumer standpoint, creating an exception that extends `RuntimeException` would be my advice. I agree that empty catch blocks are not a good idea.
Re:Size cost of C++ exception handling on embedded platforms by daemin on Monday May 16, 2016 @07:57AM (#11705723)
It would b a good idea to catch it. Except Java has a FileNotFound exception when trying to open something, which to me should just be part of the normal control flow and is not something exceptional.

That and you tend to get code that just "throws Exception" propagated all the way down to main. I know I've done it for little projects at Uni (when I last programmed in Java, 3.0 I think?)