On Friday, May 23, 2014 04:17:12 PM Ondrej Oprala wrote:
> Hi, there've recently been a few bug reports against bash on RH BZ,
> saying that bash can't handle infinite recursion the way zsh or ksh can.

They come up here at least a few times a year. E.g.
 https://lists.gnu.org/archive/html/bug-bash/2012-09/msg00072.html

> Will funcnest_max be set to non-0 in upstream code in the future?
> Or is it just there for the downstream maintainers to set it if they
> see it fit?

It should be an end-user setting. It can be useful to have the ability to set 
a limit when testing certain things.

I'm sure you're familiar with the age-old controversy surrounding recursion 
limits in Python. Guido has long argued that the limit makes sense when 
implementations are not required to support TCO, thus making tail-recursive 
iteration a "language feature" that programmers can't not depend on.

I disagree with Guido, as do many others. Though all the same arguments apply 
in this case. I see no good reason for an arbitrary limit but I understand the 
opposing view.

-- 
Dan Douglas

Reply via email to