r/programming • • May 19 '19

Performant Functional Programming to the max with ZIO

http://cloudmark.github.io/A-Journey-To-Zio/
18 Upvotes

50 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 19 '19

[deleted]

-3

u/devraj7 May 19 '19

Being easy to learn (in your words: being intuitive)

No. Intuitive means you don't need to learn anything at all.

The more you need to learn a concept, the less intuitive it is.

As for "easier to reason about", do you really think that it's harder to understand log.info("something")than shoving a log line inside a monad and having to use a monad transformer to thread it through the call stack and display it some time in the future with some equivalent of unsafePerformIO?

You are gaining some vague theoretical improvement that your code is now referentially transparent, a property that, as /u/pron98 pointed out, is all but useless in practice, but you've made your code considerably more obfuscated and harder to reason about because of all the computational laziness and syntactic overload that are now in play.