[Haskell-cafe] Re: haskell programming guidelines

ajb at spamcop.net ajb at spamcop.net
Tue Feb 28 20:52:47 EST 2006


G'day all.

Quoting Christian Maeder <maeder at tzi.de>:

> I suggested:
>
>        f . g $ h x
>
> or
>        f $ g $ h x

Of these, the first version only makes sense if you want to single out h
for some reason.  I'm known to do this, for example, if h is a record
accessor.

The second is just plain wrong.  My reasoning is here for those who care:

    http://permalink.gmane.org/gmane.comp.lang.haskell.cafe/11256

Cheers,
Andrew Bromage


More information about the Haskell-Cafe mailing list