From: Robert Dober Date: 2008-10-04T19:23:54+09:00 Subject: Re: Is Assignment in a Conditional an Idiom? On Fri, Oct 3, 2008 at 10:18 PM, Gregory Brown wrote: > On Fri, Oct 3, 2008 at 5:16 AM, Robert Dober wrote: > >> As is the rescue clause, I really would know more about why not to use it. > > It swallows all possible errors, not just the one you're banking on > running into if your object is nil. The fact that you know this makes it so usable. I like educational code and I dislike rules. I do not see why x = @a["b"].split rescue [] is bad code, only because x = @a[some_method()].split rescue [] is bad code. But there is no account for taste, see Rick I improve my idiomatic English thanks to you ;). Cheers Robert -- C'est véritablement utile puisque c'est joli. Antoine de Saint Exupéry