3 ms·
Lexical binding, higher-order functions, etc are very common in Python, for example. Except for TCO which is not widely supported in Python, and problematic if
by Peaker 14y ago
Lexical binding, higher-order functions, etc are very common in Python, for example. Except for TCO which is not widely supported in Python, and problematic if support is not guaranteed, Python seems to be just as functional as CL. Nobody cites Python as a functional language, yet people mostly cite CL as a functional language.
- lispm 14y agoFunctional Programming is discouraged in Python. See the various statements by its Benevolent Dictator starting here: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 http://www.artima.com/weblogs/viewpost.jsp?thread=98196 then here: http://python-history.blogspot.de/2009/04/origins-of-pythons-functional-features.html http://python-history.blogspot.de/2009/04/origins-of-pythons...
- Peaker 14y agoSo more a matter of the atmosphere around the language than the language itself. Intrinsically, Python and CL seem just as fit for functional programming (with semi-legitimate reliance on TCO being a slight benefit for CL's side).