[Haskell-beginners] Re: Function composition with more than 1 parameter

Chry Cheng chrycheng at gmail.com
Sat Oct 25 10:35:48 EDT 2008


Glurk <streborg at hotmail.com> writes:

> If it's not a simple case (f.g.h etc) I might just stick with putting the 
> parameter names in. At this point, brackets and multiple dots like this don't 
> really make things clearer to me (Not to mention John's post below, with 3 
> consecutive dots ! I'm really having trouble with that one !). Of course, a 
> lot of this is due to my lack of understanding - I'll keep experimenting and 
> trying to learn :)
>
> In general though, do people find this style clearer ?
> I'd be interested to know what other people prefer.

This is also my personal rule.  Beyond such simple cases, insisting on
point-free programming IMHO does more bad than good by obfuscating the
code.  See
http://haskell.org/haskellwiki/Pointfree#Combinator_discoveries for some
clever, if arcane, examples :P


More information about the Beginners mailing list