3 ms·
I think to some extent, the preference of some Haskellers to write obscure code is orthogonal to having the types help your development. Most Haskell code I re
by SquishyPanda23 7y ago
I think to some extent, the preference of some Haskellers to write obscure code is orthogonal to having the types help your development.
Most Haskell code I read in the wild is borderline incomprehensible because of things like poor naming choices. Typically I can rewrite the code to be clearer, but it's a lot of effort.
I think Haskell would benefit from some style guidelines that emphasize that your code ought to be understandable by others. That would at least counteract the natural tendency to believe that terseness is a virtue or a goal.
You can write incomprehensible C too. It's just that most people have stopped doing that.
- continuational 7y agoIt's quite common to see one or two letter variables in C too unfortunately, and typically they will have the most unhelpful type like "int" that says very little about it.