News for hackers. Stuff that matters.
Re:Introduction to Functional Programming in OCaml by TuringTest on Thursday August 23, 2018 @10:57AM (#17827762)
In Haskell, you have to opt-in to side-effects (monadic do-blocks).

In OCaml, you have to opt-in to lazy evaluation.

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.
Re:Introduction to Functional Programming in OCaml by cannabis_sam on Thursday August 23, 2018 @11:54AM (#17828290)
In (GHC) haskell you also have opt-in strictness (per module or per variable)