Re:Why Functional Programming Should Be the Future of Software
by tsimionescu on Wednesday November 02, 2022 @03:45PM
(#33441894)
Pure functional languages can very well have normal IO. It's Haskell's lazyness that mostly forced it to use monads for IO, for better or for worse. In a pure FP language with strict evaluation semantics, IO can easily be implemented as a pure function foo -> (World, Input) -> (World, Output).
[ Parent
| on HN ]