Marcin Mielñóki wrote: > Farrel Lifson wrote: >> Is there some reason why it can't be made more elegant like it is >> currently for methods? Currently you can do this for methods: >> >> def test >> raise >> rescue >> puts "Error" >> end >> > > Because do/end is another form of { } (the difference is associativity) > and those are used to compose blocks. > > Imagine: > > sth.each{ > raise > rescue > puts "Error" > } > > which doesnt make sense for me > > lopex what about this sth.each{ #my code raise #don't reach here }rescue{ puts "Error" } kind like c++/java? I don't think it looks that great either, but then I don't like the {} block in my (ruby) code anyway. just my $0.02 ~S