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
3
u/togepi_man May 30 '25
I'm a long time python user and still probably consider it my favorite language. But I've been writing 95% Rust these days (last couple years) and I honestly couldn't be happier with it.
But your points about data crunching are dead on. Serde doesn't hold a candle to data conversion in Python. I use arrow heavily - even to move data in memory between rust and python - but Rust's strong typing makes some tasks.. tedious.