
27 Jul
2010
27 Jul
'10
11:45 a.m.
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