News for hackers. Stuff that matters.
Re:OCaml 4.03.0 released (including flambda) by willtim on Thursday April 28, 2016 @01:28PM (#11590510)
Minor nitpick: Haskell has the ST monad for using "imperative idioms internally". There is no need for unsafePerformIO.
Re:OCaml 4.03.0 released (including flambda) by pauldirac137 on Thursday April 28, 2016 @03:45PM (#11591445)
You're right, but ST is also implemented using unsafePerformIO. The larger point is that you don't need to dress up a type signature with ST or IO just to use imperative code internally which can't leak out to the user level. Whether this is good or bad is a matter for debate, but used judiciously I think it's good.