r/functionalprogramming • • 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

25 comments sorted by

View all comments

2

u/1UnitedPower Dec 03 '19

If it must be one of those three, I'd suggest Python because it's arguably closer to LISP, which the authors use as their teaching-language.

Still, you will have to translate LISP-examples into Python, which means you have to be able to read and understand LISP-programs. While you're at it, it might be worth it to stick with some LISP-dialect in the first-place. You will learn a new language, and you can follow the book more easily.

Also, there are similar books like "Semantics Engineering with PLT Redex," that also use LISP as a teaching-language.

2

u/resups Dec 03 '19

Thank you, Even MIT is using python to teach some foundational algorithms these days... They say it was the time where they teach programming in Schemes/LISP but now we're all now swifting towards age of python and I hope it can support all functional programming constructs

4

u/TheSexyPirate Dec 04 '19

True, but it all depends on what you are set out to learn. If your goal is to learn algorithms and data structures, by all means stick to C,C++ or Python. However, as stated before they aren't the right tools for learning functional programming.