On Fri, Oct 3, 2008 at 10:18 PM, Gregory Brown
<gregory.t.brown / gmail.com> wrote:
> On Fri, Oct 3, 2008 at 5:16 AM, Robert Dober <robert.dober / gmail.com> wro=
te:
>
>> As is the rescue clause, I really would know more about why not to use i=
t.
>
> 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 =3D @a["b"].split rescue []
is bad code, only because
    x =3D @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
--=20
C'est v=E9ritablement utile puisque c'est joli.

Antoine de Saint Exup=E9ry