4 ms·
> Haskell programmers tend not to write large programs, period. Instead, we build lots of libraries until our problem is trivial to solve. But if the libraries
by AnimalMuppet 13y ago
> Haskell programmers tend not to write large programs, period. Instead, we build lots of libraries until our problem is trivial to solve.
But if the libraries that you write, taken together, are large, then you are in fact writing a large program. Calling part of it "libraries" doesn't change that. (So far as I can see, that's no different than a C programmer writing lower-level functions, or an assembly language programmer writing subroutines. Everybody does that - at least, everybody sane.)
- chongli 13y agoI wanted to avoid getting into a discussion about the merits of Haskell vs other languages. I was merely making a statement about what I perceive is the common practice of Haskell programmers. Do I believe that Haskell as a language provides features which allow for greater modularity, reusability, composability and generality than most other languages? Yes. However, to explain it all in great detail would take far too long. Besides that, others have already laid much of the groundwork for explaining these advantages in a much better format than I can muster here. Here's one simple example (which happens to describe the advantages of laziness): http://augustss.blogspot.ca/2011/05/more-points-for-lazy-evaluation-in.html http://augustss.blogspot.ca/2011/05/more-points-for-lazy-eva...