From: gabriele renzi Date: 2005-08-10T07:21:10+09:00 Subject: Re: Yet Another useless Ruby 2 Idea mathew ha scritto: > gabriele renzi wrote: > >> well, the same I wrote in the first message (i.e. a method after a >> method, a constant after a method etc) > > > Consider the following code: > So I don't think it's unambiguous at all. it is, I wrote that method nesting should be prohibited, thus your second interpretation is invalid and thus there is no ambiguity. Nested method definitions are mostly useless anyway because of the method scoping (actually, I think I never saw an example of using a nested def instead of a define_method in some years of rubying :) But mind you: I'm not really advocating this thing, it has already proven non-obvious 3 or 4 times as of now, and thus it is a Bad Idea(TM)