-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Brown wrote: > I think Linus puts it well: > > "The maximum length of a function is inversely proportional to the > complexity and indentation level of that function. So, if you have a > conceptually simple function that is just one long (but simple) > case-statement, where you have to do lots of small things for a lot of > different cases, it's OK to have a longer function." > > It's also his argument for an indent width of 8. If that gets difficult to > manage (he also limits to 80 columns), the code is getting to complex for > his tastes.
The one problem I have with his assertion is that it assumes that functions always start at column 0, which is a rational assumption to make for C, but not even that rational for C++. For lot's of other languages it is simply insane. - --Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHfR+3OagjPOywMBARAoCWAKCPRTazG6/ZdtGjpbXwsppLccrxHwCff3vR c/NDZnjMhrU7brJShzN6Iws= =a2ua -----END PGP SIGNATURE----- -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
