r/functionalprogramming • • Jul 01 '26

Question Beginner in functional programming

Hi everyone, I wanted to ask how you would start from scratch in functional programming to understand it in detail. I'm a guy who comes from the imperative paradigm and I want to delve deeper and investigate about functional programming.

I'm learning Gleam and some Erlang to understand Beam, and I'm not sure if it's a good place to start. I feel like I'm lacking some theory. Any recommendations would be appreciated.

32 Upvotes

21 comments sorted by

View all comments

16

u/[deleted] Jul 01 '26

[removed] — view removed comment

5

u/11fdriver Jul 02 '26

+1 for Clojure, particularly. I find it such an aggressively practical language to use day-to-day for exploration and building alike. It's a very pleasant interaction with FP.

I think Common Lisp is fantastic, but I think it presents too much opportunity for imperative loopholes for someone aiming to move towards FP. I also think that Erlang has a little bit of the system side of CL already, in terms of hot-reloading, reliability, and debugging.

LFE mightn't be an awful choice when considering that they're already using BEAMlangs, but there's just not many learning resources for it. Racket might be worth it for DrRacket alone, but the lang-oriented programming will be a distraction. Guile Scheme is a nice batteries-included implementation that I like a lot, but it's a bit awkward outside of Linux. Clojure wins out, imo.

0

u/die_liebe Jul 02 '26

I advice against using Lisp because of lack of static type checking. I also think that true higher-order programming is not possible in Lisp.

4

u/11fdriver Jul 02 '26
  • OP is currently learning Erlang, a language without compile-time static types (although it does have good type analysis tools, they are optional).
  • Higher order programming is about as possible in most Lisps as it's possible to be.
  • Clojure in particular, but also most Lisps in general, give you the ability to construct and blend types at will in a very similar way to many strictly statically typed languages.