[Haskell-cafe] Is 'flip' really necessary?

wren ng thornton wren at freegeek.org
Tue Jul 27 11:45:23 EDT 2010


aditya siram wrote:
> Eta-reducing is nice, and sometimes it makes code more readable. But 'flip'
> is one of those functions that always seems to hinder rather than help
> readability, conversely factoring out flip always makes code easier to
> comprehend. I don't see a need for its existence - maybe I'm missing
> something and more experienced Haskellers can comment.

Not quite Haskell but, in combinator calculi 'flip' is unexpectedly 
powerful. It'd be odd not to have/use it in Haskell. Though in general I 
agree that it should be used sparingly, for legibility's sake.

-- 
Live well,
~wren


More information about the Haskell-Cafe mailing list