News for hackers. Stuff that matters.
Re:Two Vexing Problems in Functional Programming by mrkeen on Friday April 01, 2022 @04:44PM (#30883117)
I was referring to the ST monad which bts and travisathougies were talking about, not STM.

I mean that when you run ST code twice with the same input, you will get the same output. E.g., if I write (runST f) + (runST f), that's the same as 2 * (runST f), etc.

As for thinking, it means I don't use step-through debuggers ever, because I don't need the whole program to be in a certain state to watch what happens. I just grab the function, grab the input, and run it in isolation.

Re:Two Vexing Problems in Functional Programming by marcosdumay on Friday April 01, 2022 @04:58PM (#30883247)
Ouch, I read STM every time I looked at it.

None of what I said applies to ST.