On 18 Sep., 03:30, "Evan Klitzke" <[EMAIL PROTECTED]> 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?
>
> Python does not optimize tail recursion.

Never mind. In the provided example the call to sieve() is not in tail
position anyway ;)

[...]

> If you
> want to write functional code, use a real functional language!

It's hard to disagree. As a Python programmer I'd rather care for
smooth integration with code written in Haskell or OCaml than adopting
their particular programming idioms. For instance the Python - OCaml
bridge is aged and I'm not aware that one between Python and Haskell
even exists.


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to