From: James Britt Date: 2007-06-03T01:18:25+09:00 Subject: Re: nested methods don't really exist?! Trans wrote: > > There are dynamic behavior scenarios such as memoize where it could be > used. But such cases are pretty rare. So I agree. Unless inner defs > are local to their outer def, akin to local variables, they really > aren't very useful --being little more than a shortcut for (class << > self; self; end).define_method(). Early on, SICP shows the use of inner methods for abstracting function behavior but Ruby does not afford the same scoping. -- James Britt "Simplicity of the language is not what matters, but simplicity of use." - Richard A. O'Keefe in squeak-dev mailing list