6 ms·
Coconut has many examples of functional programming techniques that cannot be easily done with python: https://coconut.readthedocs.io/en/master/DOCS.html https:
by studentik 8y ago
Coconut has many examples of functional programming techniques that cannot be easily done with python: https://coconut.readthedocs.io/en/master/DOCS.html https://coconut.readthedocs.io/en/master/DOCS.html
Strangely FP is not popular among python developers.
- danharaj 8y agoIt's a pain in the ass to write functional code in python because the syntax is not optimized for it. A functional programming language makes lambda and (partial) application as cheap as possible, which Python does not.
- mlevental 8y agois coconut used in production? seems like a really bad idea?
- studentik 8y agoIt's python after all, so why not?
- AlexCoventry 8y agoI think you can get 95% of the benefit of FP just by favoring abstractions which present a functional interface. Python hasn't really gotten in my way, in that respect, though it would be nice to have first-class persistent data structures with structural sharing.