[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python or Perl for a Debian maintainance project?

Hi, Andrew Suffield wrote:
> My example has shorter functions
> (because it's split into several), and no more indentation or line
> length.
Exactly: Your example has _more_ functions, so the total line count is
larger (for example, those "bool foo() {" and "}" lines). Then there's the
aded complexity of passing arguments and of checking for errors more than

The basic idea, after all, is to write exactly one function which
expresses the concept of "do X; check for and recover from errors while
doing so" so that the next person can easily understand the thing.
Linus' opinion, which I happen to mostly share, is that all that extra
stuff you're adding just because you don't like GOTOs is added complexity
with basically no advantages.

> Learn to count.

No comment.  :-/

Matthias Urlichs

Reply to: