r/Python • u/Capable-Mall-2067 • May 30 '25
Resource Functional programming concepts that actually work in Python
Been incorporating more functional programming ideas into my Python/R workflow lately - immutability, composition, higher-order functions. Makes debugging way easier when data doesn't change unexpectedly.
Wrote about some practical FP concepts that work well even in non-functional languages: https://borkar.substack.com/p/why-care-about-functional-programming?r=2qg9ny&utm_medium=reddit
Anyone else finding FP useful for data work?
137
Upvotes
View all comments
Show parent comment
1
u/Pythonistar Jun 02 '25
Neat. Yeah, I've only just started dipping my toes into the Rust waters. (Past week or so.) And I haven't even tried to run the code. Just compiled it.
Python is a good language. I've been coding it for the past 9 years or so. Still, its dynamic type system means that even despite having full type hints and a good linter, I'm still (occasionally) surprised by runtime type errors. I'd go back to C#, but I can't convince my co-worker to join me, so I'm hoping maybe we can move forward together to Rust.
I'm glad to hear you like Rust. If I could figure out how to make data conversion between JSON and native Rust go more smoothly, I think I could make the switch.
What's
arrow, btw?