Skip to content
Prev 44242 / 63424 Next

How deep can/should lists be nested?

On 14/10/2012 12:53, Duncan Murdoch wrote:
I'm not so sure it is a bug.  There have to be limits other than the 
total amount of memory (the C stack size is another one): one was 
reached and the computation was stopped cleanly.  We even allow the size 
of the ppstack to be changed in the extremely rare cases where this 
might matter.

But the real point is that that limit is not on the nesting of lists but 
on that particular way to create a deeply nested list.  We know that 
some code to copy lists is sub-optimal, but we've not been shown a 
real-world example where it mattered enough to prioritize looking into.