4 ms·
Yea it's simple. Do not nest function calls when possible. Use the rich and widely available composition facilities of the language to compose functions inste
by nightski 12y ago
Yea it's simple. Do not nest function calls when possible. Use the rich and widely available composition facilities of the language to compose functions instead of nest them. This will generally amount to a much cleaner design in the end anyways - in any language. But Haskell is one of the few languages that is abstract enough to give the ability to write these combinators.