From: Stephen Celis Date: 2008-09-22T23:14:07+09:00 Subject: Re: Symbol#re_s ------=_Part_5134_2845706.1222093336980 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On Mon, Sep 22, 2008 at 8:02 AM, Trans wrote: > > > True, we can do this. And it sure is convenient, but this approach is > generally frowned upon because it can cover-up actual errors. But in > this case, maybe it's not significant? What do others think? Some frown upon monkey-patching, some frown upon blind rescues, but the fact that we have them at our side is nice. In this case, everything will be re-raised by the symbol if String#instance_method doesn't return something that can be sent "to_sym". However, I agree with TPR, and that as far as maintainable code goes, things should be manifest. Stephen ------=_Part_5134_2845706.1222093336980--