On 07/03/07, Nicolas Frisby <[EMAIL PROTECTED]> wrote:
1) Emacs does the counting for me
2) parens don't surprise me if I happen to use rank-2 types.

i was bit enough times when learning why $ and runST don't like each
other that I've grown averse of $. I also like thinking of building a
composite function instead of sequencing applications--this has helped
me see patterns in other places like writing monad transformer
instances and other stuff, so maybe it's a good thing.

I don't use rank-2 types that often and when I do I'm aware of the
restriction on ($) and similar hofs. I tend to use ($) only when the
right-hand side gets very messy; a multiple-line do or similar. For
example:

blah = fromMaybe $ do
 x <- blah1
 y <- blah2
 guard (x == f y)
 g x

The closing parenthesis would make things a little messy, so ($) is nice.

--
-David House, [EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to