3 ms·
"even more cleanly" I think I prefer the try..catch..finally version - looks much cleaner to me.
by arethuza 15y ago
"even more cleanly"
I think I prefer the try..catch..finally version - looks much cleaner to me.
- rix0r 15y agoWell yeah, but I thought the point was they were equivalent: i.e., one is simply syntactic sugar for the other.
- virmundi 15y agoIt doesn't seem like the non-finally version will necessarily run in every case. In the instance of try/finally, a runtime exception might occur as well as a checked exception. finally will always run. But a.cleaup will not.