Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90777

Re: My attempts in playing with tail-recursion in python

Newsgroups comp.lang.python
Date 2015-05-17 10:15 -0700
References <521df4f7$0$2551$426a74cc@news.free.fr>
Message-ID <ed8a0e14-2b7e-41a2-a663-7db275b5ae05@googlegroups.com> (permalink)
Subject Re: My attempts in playing with tail-recursion in python
From Fred Spiessens <fred@evoluware.eu>

Show all headers | View raw


Hi Thomas, I like what you've been doing.
I think it would also be great if the "leave the loop" detector would be the actual stop condition in the recursion, applied to the arguments of the call.
That would of course force you to split the recursive function in two functions: one to detect the stop condition, and another one that makes the next call, but in my opinion, that would make perfect sense.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: My attempts in playing with tail-recursion in python Fred Spiessens <fred@evoluware.eu> - 2015-05-17 10:15 -0700

csiph-web