Re:Haskell Beats C Using Generalized Stream Fusion [pdf]
by mightybyte on Sunday April 07, 2013 @09:09PM
(#5509475)
I'd actually argue that modifying existing programs is where Haskell really shines. Strong static types and purity allow you to know a LOT more about arbitrary bits of code than any other language in mainstream use today.
Re:Haskell Beats C Using Generalized Stream Fusion [pdf]
by tome on Sunday April 07, 2013 @03:07PM
(#5508250)
If your program is well factored then it probably won't be hard to switch to IO ten levels deep. Bonus: Haskell makes refactoring easy!
For example once you have a working program and decide that actually some value could be read/written using a file instead of computed at runtime and the place you use it is 10 levels deep after calling a non-IO function, you've got two choices. Unsafe IO (then why not use it everywhere) or a minor program redesign. Haskell is the only language where I run into this kind of situation. (it's still quite simple despite this)