3 ms·
Functional programming in Python sucks for a few reasons: - Lack of pipe operator - Multiple arguments everywhere instead of currying - No do-notation or equ
by de_keyboard 5y ago
Functional programming in Python sucks for a few reasons:
- Lack of pipe operator
- Multiple arguments everywhere instead of currying
- No do-notation or equivalent
- Reference equality rather than structural equality for objects etc.
If you want to program in this style, consider using F#, R or even JavaScript with a few Babel plugins.
- henearkr 5y agoWhich Babel plugins you would recommend?
- de_keyboard 5y agoBabel pipeline is a good one: https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-op... Combine it with Lodash FP: https://github.com/lodash/lodash/wiki/FP-Guide https://github.com/lodash/lodash/wiki/FP-Guide
- henearkr 5y agoThanks a lot!!