r/functionalprogramming • u/j_gitczak • Jan 12 '25
Question Which functional programming language should I learn?
I have recently discovered the world of functional programming and I want to learn a functional programming language.
For most of my life I have programmed in Python and I have always liked its onelined expressions like list comprehension and lambdas.
I also value good error messages in a programming language (not some segmentation fault or NullPointerException bullshit), and this is also why I like for example Rust.
I study Mathematics so I like the idea of a programming language being "mathematical" which I heard Haskell being decribed like, and Haskell is what I initially thought would be the best to learn, but I don't want to exclude other languages, so that's why I'm making this post.
I don't plan on ending my functional programming journey on one language, so I want to first learn one just for fun, so it doesn't matter if a language is used in industry or not.
I would really appreciate some recommendations for the language I should learn.
View all comments
Show parent comment
3
u/[deleted] Jan 13 '25
Not rude at all, it’s a valid question! (Have to practice before I preach and all, no?)
Well I have tried OCaml but mostly for uni. So while I have experience with it, it’s for things where it shines (Coq and interpreters, etc). It was quite enjoyable to use there, so I still have good impressions of it.
OTOH, it’s Haskell I haven’t tried very much, hence my comparison between the two is very skewed i.e. my knowledge of Haskell is quite limited.