The first (non tail-recursive) version causes a stack overflow. The second (tail-recursive) version runs forver and uses a constant amount of memory. The third (using continuations) version uses memory proportional to the number of items it has processed, so it will run until there is no more memory left.
The first (non tail-recursive) version causes a stack overflow. The second (tail-recursive) version runs forver and uses a constant amount of memory. The third (using continuations) version uses memory proportional to the number of items it has processed, so it will run until there is no more memory left.
Ну run until there is no memory left может относиться и к стеку
The third (using continuations) version uses memory proportional to the number of items it has processed, so it will run until there is no more memory left. - в целом весь этот пассаж так же точно описывает то, что происходит в данном случае