Hacker News new | ask | show | jobs
by nixpulvis 2283 days ago
Are we talking about even roughly the same concept of functional purity [1]? Nothing is stopping a pure function from representing EOF as -1.

Implementing IO in a "pure" way, is however another discussion.

[1]: https://en.wikipedia.org/wiki/Pure_function

1 comments

Mostly, do you know of a single procedural language with a concept of IO monads in its stdlibs?