[Haskell-cafe] What is your favourite Haskell "aha" moment?

John Wiegley johnw at newartisans.com
Wed Jul 11 22:00:11 UTC 2018

>>>>> "SM" == Stefan Monnier <monnier at iro.umontreal.ca> writes:

SM> I don't much like the monad solution for side-effects, but if those guys
SM> might have some knowledge of the horror of concurrent programming with
SM> locks, the STM system would be a good candidate.

I would vote for STM too, especially when using retry within a logical block
to indicate "try again when things might make more sense". When dealing with
multiple variables, and queues that you're popping values from, that is a
truly hard thing to say with traditional concurrent programming.

John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2

More information about the Haskell-Cafe mailing list