News for hackers. Stuff that matters.
Re:Why the developers who use Rust love it so much by UK-Al05 on Saturday June 06, 2020 @07:39AM (#23438471)
Algebraic data types, monads, and things based around those have tons of business value for writing correct business logic for non-performance critical code. You get that in haskell.

Though admittedly you can get them other functional languages that are not quite as different. Like Ocaml.

Re:Why the developers who use Rust love it so much by jolux on Saturday June 06, 2020 @07:49AM (#23438515)
Monads are so cumbersome to implement and consume in OCaml that they are not very commonly used. Jane Street Core has monadic abstractions for things like async but it’s a pain without syntax extensions.
Re:Why the developers who use Rust love it so much by lpage on Saturday June 06, 2020 @09:50AM (#23439154)
That was true until 4.08. OCaml now supports monadic let bindings, and more generally, user defined let bindings [1].

You get the benefits of ppx_let (Jane Street) but in a more general and syntactically nicer form. I still wouldn’t call it as nice as do notation in Haskell but it makes monads highly usable in OCaml without the need for an external dependency.

[1]: https://github.com/ocaml/ocaml/pull/1947

Re:Why the developers who use Rust love it so much by jolux on Saturday June 06, 2020 @07:08PM (#23443150)
Wow, I completely missed this! Nice.