4
watzon
7y

Favorite functional programming language and why. Go!

Comments
  • 0
    Elixer I've written Hello, world! :D
  • 0
    You mean I hate the least? I think that must be Python, Lua or VBA. Ive done most with VBA (love hate relationship with it). Lua I learned through computercraft and made a little game with later on. With python I've build a small raspberry pi robot. But I really hate functional programming
  • 0
    @Codex404 none of those (except maybe Lua, I don’t really know) are functional languages by nature though. I won’t touch Python with a 10 ft pole anymore though lol.

    Might I ask why the hatred for functional programming?
  • 0
    @dev0urer if that is the case then I'm wondering what functional languages are, I always thought it were languages where there was no way to make classes without a lot of hacking.

    I've started out as gamedeveloper and see every little thing as classes and objects. (Even software I use is divided in my mind in to classes/objects). When I after 6 years of programming suddenly had to start (school) program functionally instead of OOP to "learn programming" I didn't understand how to do it in a way that makes sense. After a year they said that that isn't the best way to do it and learned us about classes. This is why I hate it that much
  • 0
    @Codex404 it’s not necessarily about classes, it’s more about objects or the lack thereof. Python is an OOP language by nature. Sure you can do functional programming in it, but it will never be purely functional. Languages like Haskell, Elm, Elixir, and Clojure are examples of purely functional languages (although with Clojures reliance on Java I don’t feel like it’s quite as “pure”).

    The great thing about functional languages is that you avoid mutating any kind of state, but especially global state. With that there is an express lack of “side effects” from running individual functions which means code is more predictable. Instead all functions return a value of some kind that is then passed along.

    This coming from someone that’s worked with primarily OOP languages for the past 7 years. I love the idea behind functional programming :)
  • 1
  • 0
    Gallina (:
  • 0
    Haskell. Joined a corse at university, i loved it.
  • 0
  • 0
  • 1
    @elazar ahhh! My eyes 😭
  • 0
    I've started with Haskell (currently reading on Applicative Functors), so that would be it for me. I'll guess I'll know better once I check Elm and Elixir :)
  • 0
    Currently I'm playing with Lisp and Clojure
  • 0
Add Comment