For many years I used try-catch / except-finally variants in many languages, today someone asked me what was the point, and I could not answer.
Basically, why did you put the statement in the end instead of just putting it after the whole try-catch block? Or, in other words, there is a difference between the following blocks of code:
try{ //a} catch {//b} finally {//c} try{//a} catch{//b} //c
EDIT:
PEOPLE, I know what he ultimately does, I have been using it for ages, but my question is in the above example, setting //c , in the end, seems redundant, doesn't it?
exception-handling finally
Ali Mar 13 '12 at 16:16 2012-03-13 16:16
source share