r/functionalprogramming • • Apr 28 '24

Question Which Functional Language with strong typing to learn?

My background:

I'm a software engineer working a dayjob with Web development, using essentially just TS for everything

As a side project, I'm working on a game for which I'm using C#, GDScript and a markdown language we're creating called SPML

I've dabbled in some other languages, like C, C++, Rust, Ruby, Java, Python, and some others, but never really got deep into any Functional Programming language.

Recently I've started to learn about Clojure - I'm enjoying it, but I'm feeling the lack of types; coming from TS and Rust, which are my favorite languages so far, it feels so clunky to write anything without types. In Rust and TS I can hover over parameters and variables within functions and know immediately what they are; I hover over functions and I know exactly which type they return, what they take in, etc, and if I try to use something in an awkward way, the compiler lets me know immediately

What I'm looking for:

Essentially a popular strongly typed FP language, that can be as expressive as Clojure. I just want to learn it for myself, not really for looking into jobs, but popularity is important due to availability of packages and learning material. I really liked that on Clojure, but I'm not sure I'll continue learning it after finishing the current book due to the lack of typing

EDIT: Thanks for all the suggestions, everyone!

I'll probably stick to Clojure for a bit after hearing about Babashka; then I'll learn either F#, Haskell or OCaml

32 Upvotes

36 comments sorted by

View all comments

Show parent comment

6

u/mosskin-woast Apr 28 '24

popularity is important

1

u/GunpowderGuy Apr 28 '24

Its already got learning materials written and a good number of packages. You can check the ones that have already been added to the standard package manager here : https://github.com/stefan-hoeck/idris2-pack-db

However some, such as the raylib ( a 3d game library ) bindings and the automatic c library binding generator still havent been uploaded there