3 ms·
You can apply some level of pure function in whatever langues, and it not that hard and make thing easy to test and think about it Monad is like highly effecti
by imachine1980_ 5y ago
You can apply some level of pure function in whatever langues, and it not that hard and make thing easy to test and think about it
Monad is like highly effective and complicate patch to handle thing who couldn't be pure function.
i don't like Haskell because of that is not natural force that much the langues for me(opinion), but is like try to tech Rust as first langues you don't have the grasp in the limitations to understand why ownership matters, and why all the langues need to be kind a weird, is still weird but you understand the advantage and grasp at least the syntax and basic patters make it more pleasure to learn it.
- _y5hn 5y agoMonads are pure expressions/patterns. It's only impure and have side effects in the final evaluation, for a few monads like the IO Monad. It's just using monadic expressions for tricking side effects into the language in a cleaner way, thus considered beneficial. Haskell is hard for programmers, because it forces them to truly think. Haskell grows on you when you get to know how it evaluates and forces you to separate concerns structurally. For that reason, it's said to be a language that teaches you how to program better.