Skip to content

Comment on An Experiment in Purely Functional IO for Clojureparent

Comments

You are correct under this particular interpretation of purity, there are just competing ways to assess said purity. Wikipedia only lists two (the one you just showed and the one I described) but is missing the third one (the inlining approach).

In Haskell, all functions in the IO monad are by definition pure, and that includes all the println functions.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.