From: David Alan Black Date: 2002-07-08T19:52:43+09:00 Subject: Re: How to determine EOF with sysread? Hi -- On Mon, 8 Jul 2002, Jim Freeze wrote: > Does it strike anyone as bad practice > to use a rescue for control flow? Except for speed considerations, I personally prefer this: begin object.meth rescue NoMethodError # ... end to this: if object.respond_to?(meth) then object.meth end but that's partly because I really dislike the latter idiom and try to get around it whenever possible. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav