Functional Programming and python

Piet van Oostrum piet at vanoostrum.org
Mon Sep 30 14:55:47 EDT 2013


Franck Ditter <nobody at nowhere.org> writes:

> Good approach of FP in Python, but two points make me crazy :
> 1. Tail recursion is not optimized. We are in 2013, why ? This is known technology (since 1960).
> And don't answer with "good programmers don't use recursion", this is bullshit.

Tail recursion optimization throws away valuable stack trace information in case of an error.

> 2. Lambda-expression body is limited to one expression. Why ?

Allowing general statements in a lambda body makes indentation more difficult, I think.
-- 
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]



More information about the Python-list mailing list