Re:Exception Safety, Garbage Collection etc. (a.k.a. Why Doe...
by bmm6o on Friday May 06, 2011 @02:59PM
(#2522065)
Sure. Another alternative is to pull the try/catch/finally into a separate function that just returns the value. But that's not always convenient, YMMV, etc. Either way, I'd consider it just an occasional annoyance (occasional because frequently print() is quick, or the resource is not expensive or contended).
[ Parent
| on HN ]
There are no comments on this comment yet.