top | item 37538065

(no title)

DesertVarnish | 2 years ago

Haskell is purely functional, but if you make ample use of do-notation it's very easy to write in a familiar imperative(ish) style for day-to-day tasks. Most learning materials won't emphasize this but large production Haskell codebases that do a lot of IO usually end up looking a lot more familiar than you might expect.

If you have interest in both OCaml and Haskell, you might also consider just learning Rust which borrows aspects from both of them. Rust traits aren't quite as powerful as Haskell typeclasses and its module system is definitely more limited than OCaml's, but if you write it in a more functional style you'll get exposed to a lot of similar patterns.

A lot of things in Haskell never really clicked for me until I spent some time getting comfortable with Rust.

discuss

order

catlover76|2 years ago

Yeah, I was considering Rust, and actually originally thought I'd be asking this question about the 3 of them.

I guess I figured I wanted to do a more academic language first, and that there may be a chance I'd have a practical use-case actually crop up for Rust at some point (in particular if I want/need to write/generate some WebAssembly, which may be the case for a project I may embark on).

Thanks for your input