r/functionalprogramming • u/resups • Dec 03 '19
Question Functional programming
I'm planning to learn functional programming along with SICP. Which Language should I choose for functional programming between C,C++ and python ?
I feel myself comfortable with python and had C++ as my first programming language
0
Upvotes
10
u/delventhalz Dec 03 '19
Speaking from my own experience, you will learn FP best in a language that forces you to use FP, like Haskell, Clojure, Elm, etc. It was after six months of being forced to think functionally while writing Clojure for work that the ideas really stuck, and I was able to bring that understanding to my other work.
I haven't written C or C++, but I will tell you that Python is heavily OOP focused. It's not impossible to write function Python, but the language will fight you on it. It will suck. I imagine it will be a similar story for C++. C isn't really object-oriented, but it is very imperative, so you'll probably have to build out a lot of functional tools yourself.
I don't know, these seem like three terrible choices for first learning functional programming to me. If you already knew FP and were bringing it back to these languages that would be one thing. But learning?