how many nested for can we utilize?
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Sun Aug 17 15:19:37 EDT 2008
Nick Dumas schreef:
> A good quote I read (I can't remember who it was from, though) is "If
> you need more than three levels of indentation, then something is
> seriously wrong with your code." Possibly Guido himself?
Linus Torvalds in the Linux kernel coding style document:
"[...] The answer to that is that if you need more than 3 levels of
indentation, you're screwed anyway, and should fix your program."
(http://lxr.linux.no/linux/Documentation/CodingStyle)
--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov
Roel Schroeven
More information about the Python-list
mailing list