allowing braces around suites
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Wed Sep 1 03:40:12 EDT 2004
Antoon Pardon wrote:
> Op 2004-08-31, Ville Vainio schreef <ville at spammers.com>:
>
>>>>>>>"Antoon" == Antoon Pardon <apardon at forel.vub.ac.be> writes:
>>
>> Antoon> The nesting reflects the structure of the algorithm. If an
>> Antoon> algorithm is best described by the nesting of a number of
>> Antoon> control structures then i don't see how you are going to
>> Antoon> remove that nesting.
>>
>>Functions and classes?
>
>
> If you need a function or class just to avoid nesting, then IMO
> you have only camoeflaged it. In order to understand what is
> going on you still need to understand how the nesting of
> a number of controls prroduce a certain result and when
> you write a function just to avoid nesting it often enough
> makes readablity harder.
I disagree. I have never seen an algorithm that couldn't be neatly
subdivided in blocks, or where at least a block could be isolated. And
in my experience it always enhances the readability significantly.
--
"Codito ergo sum"
Roel Schroeven
More information about the Python-list
mailing list