Re: Python or Perl for a Debian maintainance project?
>>>>> "Andrew" == Andrew Suffield <firstname.lastname@example.org> writes:
Andrew> (The idiom here is: check input, acquire resources, process,
Andrew> release resources, and split those out into other functions as
Andrew> needed - strict two-phase locking, which avoids deadlocks into
Andrew> the bargain)
Agreed that it is nicer than version in the kernel. Indeed, it probably
compile to exactly the same code once you inline the do_setpgid(), so there
should be no performance hit.
Andrew> It never simplifies code. That's been the whole point for the
Andrew> past Eris-knows-how-many years. Any time that you think you've
Andrew> found a use of goto that makes the code simpler, there's another
Andrew> way to write it without goto that would be simpler
Andrew> still. Example above.
But this I'd disagree. Sometimes in C there is really no good alternative
than writing a goto. In any other language one can probably avoid those
(using exceptions, labeled break/continue, etc).