3 ms·
The first one, about everything having to be lazy, isn't true. You can define strict data types or functions. The other two are though.
by elbear 8y ago
The first one, about everything having to be lazy, isn't true. You can define strict data types or functions. The other two are though.
- sudomakeup 8y agoYou can still have mutable references and impure functions in Haskell, but its not like "path of least resistance" of other languages. The IO type marks impure functions Also one can use STRef if they want to have a pure function that is internally implemented with mutable values - that is all the side effects are self contained. http://gamasutra.com/view/news/169296/Indepth_Functional_programming_in_C.php http://gamasutra.com/view/news/169296/Indepth_Functional_pro... "a function can still be pure even if it calls impure functions, as long as the side effects don't escape the outer function"