in reply to Re^4: Opinion: where Perl5 wasn't attractive for me
in thread Opinion: where Perl5 wasn't attractive for me
Unless Python also requires that all variable initializations happen before any other statements in a method/function, its lack of block scoping is absolutely irrelevant. It doesn't matter whether the scope of $faultsInaRow is the block, the loop or the method. It should have been caught as a typo, because it was not mean as an initialization. It should have been merely an assignment.
Jenda
Enoch was right!
Enjoy the last years of Rome.
|
|---|