[Haskell-beginners] general observation about programming

Rustom Mody rustompmody at gmail.com
Sun Feb 28 03:24:36 UTC 2016


On Sun, Feb 28, 2016 at 2:26 AM, Jeffrey Brown <jeffbrown.the at gmail.com>
wrote:

> It is, I agree, not appropriate everywhere, but point-free code can in the
> right place be much more readable. Maps are a good example. Compare:
>
>     map (f . g . h) xs
>
> to
>
>     map (\x -> f $ g $ h x) xs
>

Not quite a fair comparison
How about?
[ f (g (h x))  |  x <- xs ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160228/89b36787/attachment.html>


More information about the Beginners mailing list