From: Bernd Lorbach Date: 2001-01-20T17:10:02+09:00 Subject: [ruby-talk:9589] rescue / ensure Hi, I don't understand what the ensure-clause is for. If you have f = File.open ... begin ... rescue puts "Error: #{$!}" ensure f.close end you just could do f = File.open ... begin ... rescue puts "Error: #{$!}" end f.close I think the latter one looks more symmetric and does just the same as the former version, as the rescue clause ensures, that the program is continued after the begin/end block. Am I missing something?