News for hackers. Stuff that matters.
Re:Introduction to Functional Programming in OCaml by the_duke on Thursday August 23, 2018 @01:43PM (#17829190)
Do blocks don't allow side effects, they are just syntactic sugar that makes composing monadic operations easier.

Haskell does have escape hatches with unsafePerformIO and IORef/STRef

Re:Introduction to Functional Programming in OCaml by TuringTest on Friday August 24, 2018 @05:20AM (#17833761)
Yeah, but monadic composing is what make I/O and other side effects stylistic and understandable.