r/dailyprogrammer • u/Coder_d00d 1 3 • Sep 09 '14
[Weekly #10] The Future
Weekly Topic:
Read enough blogs or forums and you can see the future. What trends or topics are coming down the line? Is it a new language? New design? New way to engineer software?
Last Week:
[Weekly #9] (http://www.reddit.com/r/dailyprogrammer/comments/2f6mo2/weekly_9_binary_trees/)
54
Upvotes
View all comments
Show parent comment
2
u/continuational Sep 18 '14
Well, having to express the effects in the type of a function makes you think twice before using effects in the first place, because of the extra work involved. On top of that, global state isn't really possible at all in Haskell (except via the FFI). So most Haskell code is separated into a relatively small part that uses IO, and a much larger part that is pure, or uses specific effects internally (many effects in Haskell can be used locally while maintaining a pure interface externally). The types are often sufficient documentation on their own (specifications, whereas tests are examples - usually you'd want both of course).