r/functionalprogramming • u/jpgoldberg • Jul 17 '25
Question My disFunctional brain can't make this functional
/r/PythonLearning/comments/1m0rldb/my_disfunctional_brain_cant_make_this_functional/
7
Upvotes
View all comments
Show parent comment
2
u/jpgoldberg Jul 18 '25
My preference is for a nice illustration of how to do this functionally.
If Python gets in the way of that, then please use something else. I can usually read Rust just fine. A few years ago, I worked through a few chapters of a Haskell book, so that would be next on the list. There was a time in my life (long ago) when I could read and write untyped λ-calculus, but let’s not go there. (Ok, not really untyped; it was with Russell’s type theory.)
I happen to have reasons for using Python for a bunch of stuff I am doing these days, despite its dynamic typing, referential opacity, lack of enforcement of any sort of immutability, etc. If your heart is set on preaching to the Python community, be my guest; but I would prefer that you also help me with the question I asked.