News for hackers. Stuff that matters.
Re:A statically typed scripting language that transpiles to ... by 8n4vidtmkvmk on Saturday March 26, 2022 @02:44AM (#30809805)
so what then is the friendliest functional programming language for those of us with lots of... non-fp experience but very little fp exposure?
Re:A statically typed scripting language that transpiles to ... by catlifeonmars on Saturday March 26, 2022 @01:37PM (#30813707)
The ML family is the most reasonable IMO. Languages such as OCAML and ReasonML feel like they’re designed to solve real world problems rather than adhering to type manipulation pedantry.
Re:A statically typed scripting language that transpiles to ... by xmcqdpt2 on Sunday March 27, 2022 @07:48AM (#30819523)
"Standard" Scala (i.e. without the fancy monadic libraries like cats or zio) and Rust are both mixed paradigm languages with good support for many FP constructs.

In practice you can write imperative code using either of them but the focus on immutable data structures, and (in Rust more than Scala) functional error handling means that many manipulations are easier to do with FP constructs, so they appear quite naturally (Option, Result/Try, iterator maps etc.)

As a bonus IME they are very similar in many respects so experience in one translates well to the other.

Re:A statically typed scripting language that transpiles to ... by tasuki on Saturday March 26, 2022 @03:52AM (#30810080)
Imo, Elm is the friendliest pure functional language. It's a frontend language though.

I'm a backend developer by trade and Elm made me fall in love with frontend development, which I've rather hated before.