News for hackers. Stuff that matters.
Re:Why Haskell Is Interesting? (2005) by douglasisshiny on Sunday September 04, 2022 @09:17AM (#32712721)
Does Haskell treat mutability as an afterthought? I thought constructs like IORef were for cases in which mutability is needed.
Re:Why Haskell Is Interesting? (2005) by WastingMyTime89 on Sunday September 04, 2022 @09:49AM (#32713034)
No, mutability was always central to Haskell. Investigating how you could track through the type system and isolate the parts of programs requiring side-effects was the research goal of Haskell. It’s the most notable evolution from Miranda.

Haskell issue is not that mutability is an afterthought. Haskell issue is that Haskell is a good research project but not a very good programming language.

Re:Why Haskell Is Interesting? (2005) by douglasisshiny on Sunday September 04, 2022 @09:59AM (#32713123)
That could be the case. I've never used it. I did "learn" it to use a library (fp-ts) in typescript which basically brings Haskell into typescript and I love the concepts. It's certainly changed the way I think about programming.
Re:Why Haskell Is Interesting? (2005) by macrolocal on Sunday September 04, 2022 @01:32PM (#32715484)
It’s common for teams to overuse IORefs or the ST monad when they need mutability, which can make Haskell feel like an imperative language or maybe OCaml.