can Python be useful as functional?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Sep 17 18:44:15 EDT 2007


Grant Edwards a écrit :
> On 2007-09-18, Steve Holden <steve at holdenweb.com> wrote:
> 
>>Lorenzo Stella wrote:
>>[...]
>>
>>>My question is: how can we call a language "functional" if
>>>it's major implementation has a limited stack? Or is my code
>>>wrong?
>>
>>So, which environment do you habitually use that provides an
>>*unlimited* stack?
> 
> Perhaps Lorenzo Stella is referring to Python's lack of
> tail-recursion optimization?  There are languages that
> guarantee unlimited tail-recursion with a limited stack.
> 
> That's a typical feature for a function language, right?
> 
And also for some implementations of some purely procedural languages IIRC.




More information about the Python-list mailing list