News for hackers. Stuff that matters.
Re:Total Functional Programming (2004) [pdf] by trealira on Thursday March 07, 2024 @11:07AM (#39630726)
> Why is this taken as a given to be a good thing?

So that we can prove things about software more easily. If we only write stateful imperative programs, we're stuck with tons of Hoare triples and separation logic rather than being able to use equational reasoning or type-driven deductions. For example, this person wrote a parallel wc in Haskell, and they used semigroups to parallelize the word counting.

https://chrispenner.ca/posts/wc

There are no comments on this comment yet.