Efficiency of functional code

Simen Kjaeraas simen.kjaras at gmail.com
Sun May 22 14:22:37 PDT 2011


On Sun, 22 May 2011 02:05:11 +0200, bearophile <bearophileHUGS at lycos.com>  
wrote:

> In Haskell many of my functions are 1 line long, and often less than  
> four lines. So the comment that Walter says often against shallow  
> single-line Phobos functions doesn't apply to Haskell :-)

This is so true. Factoring functions is not just about making code
shorter, but grouping constructs in such a way as to more clearly
describe the actions performed.

-- 
   Simen


More information about the Digitalmars-d mailing list