
16 Jun
2012
16 Jun
'12
4:52 p.m.
On 16/06/2012 06:24, Dave Abrahams wrote:
Of course, what would be the point of exceptions i[f] not to catch them?
Usually you want to do something with the exception once caught; your code doesn't do that. And code where the catch block doesn't rethrow tends to be incredibly rare.
My code was an example, of course real code would do something. There are a lot of valid cases where you can do something which doesn't involve setting a new value to foo or rethrowing.