On Tue, Nov 25, 2008 at 12:20 PM, Ezra Zygmuntowicz <ezmobius / gmail.com> wrote:
>
> On Nov 25, 2008, at 11:05 AM, Dave Thomas wrote:
>
>>
>> On Nov 25, 2008, at 12:59 PM, Yukihiro Matsumoto wrote:
>>
>>> But your post made me think using this syntax in the future might be
>>> impossible.  It already abused somewhere (in the real code).  Sigh.
>>
>> I'm OK if you deprecate it in 1.9.3: I've used in just a few times, and
>> there are always alternatives. I just have this stupid need to stick up for
>> the underdog, and felt I had to react when you called the poor thing
>> "useless." I was worried you'd hurt its feelings.
>>
>>
>> Dave
>
>
>
>        Rails routing code uses this method redefinition inside of itself
> extensively. So I think we're stuck with it unless someone wants to rewrite
> rails router ;)

Rails defines routing methods using instance_eval. It doesn't use
method self-redefinition or this literal syntax. Too bad; it's kind of
cool :)

jeremy