[Haskell-beginners] Good style on "." and "$" pipeline?

Brandon Allbery allbery.b at gmail.com
Wed Aug 22 17:09:32 CEST 2012

On Tue, Aug 21, 2012 at 9:34 PM, koomi <koomi at hackerspace-bamberg.de> wrote:

> On 21.08.2012 22:43, Brent Yorgey wrote:
> > Having more than one $, like (f1 $ f2 $ fn $ arg), is frowned upon.
> Care to explain why this is considered bad? I don't see anything wrong
> with this.

Experientially, we see it a lot in #xmonad from beginners combining stuff
together with a certain amont of cargo-culting (being beginners and usually
quite unfamiliar with Haskell).

I've been moving toward using ($) to separate logical "phrases" and (.)
within the phrases, to make it easier to see which things go with which.
 Since layoutHook is rather agglutinative, this helps a lot.

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120822/2f866916/attachment.htm>

More information about the Beginners mailing list