Re: OOP style




"Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx> wrote in message
news:430e2f75$1$11070$e4fe514c@xxxxxxxxxxxxxxxxx

> There are drawbacks, though. In some of the more interesting cases,
> they can't be used.

These are rare circumstances and should not discourage one from generally
using nested routines.

> Sometimes. It limits code reuse, though, so unless the oversized method
> very naturally falls to pieces, there is not all that much call to do
> this.

It only appears to limit code reuse. In actuallity, it encourages code reuse
since its much easier and generally safer to promote a nested routine than
it is to extract a code segment from the middle of a large routine. Further
the thought process used to identify appropriate nesting also encourages one
to think about reuse.


.