Re:Are Monads a Waste of Time?
by skolemtotem on Tuesday February 20, 2018 @08:47AM
(#16420235)
No, that does not make sense. Rust's unsafe code lets you do some things that could violate the compiler's expectations, and making sure that you're aware that you need to manually enforce those invariants. Haskell has some unsafe* functions that are exactly like that, too, such as unsafePerformIO, that are analogous. On the other hand, the IO and State monads are completely safe-to-use, using a simple abstraction to represent impurity in a pure language.
[ Parent
| on HN ]
There are no comments on this comment yet.