Re:Ask HN: What is your best advice for a developer to write...
by bbcbasic on Thursday June 30, 2016 @05:18AM
(#12007417)
I love Haskell but I feel it attracts the most golfy code. E.g. Yes you apply the dot operator to itself but why would you?
[ Parent
| on HN ]
Re:Ask HN: What is your best advice for a developer to write...
by codygman on Thursday June 30, 2016 @10:40AM
(#12008852)
> I love Haskell but I feel it attracts the most golfy code.
I don't feel like most Haskell code is like that and I've read a fair amount.
> E.g. Yes you apply the dot operator to itself but why would you?
I write a fair amount of Haskell and I despise seeing code that applies the dot operator to itself.
Another lambda rather than a double compose is almost always the answer.
Re:Ask HN: What is your best advice for a developer to write...
by bbcbasic on Thursday June 30, 2016 @04:46PM
(#12011517)
> Another lambda rather than a double compose is almost always the answer.
Exactly. I also like to choose between do, >>= and <$>, <*> etc. based on readability. I prefer a slightly more clumsy but readable do {...} in many situations.