Re: [RFC PATCH] explicitly mark recursion count

Jörn Engel
2004-06-02T15:05:16Z

On Wed, 2 June 2004 07:45:10 -0700, Linus Torvalds wrote:
>
> The programmer had _better_ know that there is some upper limit.
>
> And I claim: recursion is illegal unless the programmer has some explicit
> recursion limiter. And if he has that recursion limiter in one of the
> functions, then he damn well better know it, and know the value it limits
> recursion to.

Can I read this as:
Linus himself will use strong words to enforce all recursions in the
kernel to be either removed or properly documented.

In that case, you have 273 recursions to deal with. They are all in
the data I attached a few posts back. Recursions would basically be
in the same league as huge stack hogs, sounds good.

Jörn

--
Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface.
-- Doug MacIlroy