Of course, they have side effects. Side effects are what the computation does. Otherwise, they would simply make the box hot.
The difference between Haskell and most languages is that Haskell forces one to keep that impurity at the outer edges. It enforces that constantly, making programs easier to reason about.
I heard it explained succinctly lately: types are all of the possible inputs and outputs of a program while functions encapsulate the mutation. Excel, for example, is a purely functional language.
Yeah, there’s like two projects that use Haskell. Doesn’t change the fact that it’s the language that most people know and will never write anything productive in it.
Why do programs written in Haskell not have side effects?
To have side effects someone would have to run the programs.
Of course, they have side effects. Side effects are what the computation does. Otherwise, they would simply make the box hot.
The difference between Haskell and most languages is that Haskell forces one to keep that impurity at the outer edges. It enforces that constantly, making programs easier to reason about.
I heard it explained succinctly lately: types are all of the possible inputs and outputs of a program while functions encapsulate the mutation. Excel, for example, is a purely functional language.
pandoc.
Yeah, there’s like two projects that use Haskell. Doesn’t change the fact that it’s the language that most people know and will never write anything productive in it.
Eh, i’m not a math type but for them, Haskell is chef’s kiss from what i’ve heard.