4
Marl3x
5y

Can anybody recommend me a modern, functional programming language?

Comments
  • 5
    Haskell
    It's mature, used in production (yes I know), has a gigantic and very helpful community, modern tools, and just about all the libraries you could ever want.

    Plus it's very strict about being FP only, none of that mixed paradigm stuff here (though you can emulate other paradigms quite easily).
  • 2
    And if the web is more your home. Elm Lang uses Haskell syntax to compile your app to html, css, js.
    It's compiler doesn't allow runtime errors and it points out every error you made exactly and with advice on how to resolve the issue.

    https://elm-lang.org
  • 3
    Rust, Go
  • 5
    @Sleek
    Go may be good, but isn't functional.
  • 2
    @sleek rust is pretty bad too from a FP perspective. It has a lot of neat stuff from FP languages but it's not designed to be core FP.
  • 1
    @heyheni Elm looks really cool, but I just cant imagine myself literally coding the whole structure of my html file. It seem so inefficient.
  • 0
    Hmmm up until now i used to group all non Object oriented languages as functional. Whats makes a language functional?
  • 1
    @RememberMe How is it to write Haskel as a backend language? Is it really as easy and fast as people claim?
  • 1
    @sleek

    FP isnt about a language, its a programming paradigm.

    i advise you to read https://maryrosecook.com/blog/post/... for an easy introduction.
  • 1
    People use straight up functional languages?
  • 1
    I wondering why nobody say python 🤔
  • 1
  • 2
    @Marl3x Haskell is really nice for backend (that is its primary industry use too). I dunno if you'd call it easy though, the pure FP, monad heavy style is pretty hard to do if you're not used to it, but it produces very nice and clean code. Usually. In general. It really depends on what your program does (not all things map easily to FP) and how you architect it.

    As for speed, it has a superb compiler and is decently fast given the crazy stuff it supports. It's also tunable and there are best practices for speed (use the right data structures, avoid excessive thunks and use laziness strategically, etc.). Go OCaml though if speed is a critical issue.

    @Spxx because although python supports functional features it's not really a FP-first language. And besides I *think* GvR isn't too fond of FP style, he prefers that people use list comprehension instead of maps for example (or something of the sort).
  • 0
    What are you all smoking? Python doesn't even have proper lambdas
Add Comment