3 ms·
> (\(s', m') -> fmap swap I understand beauty is in the eye of the beholder, but this code, along with much of the Haskell code I’ve ever read, looks horrendou
by 3fe9a03ccd14ca5 7y ago
> (\(s', m') -> fmap swap
I understand beauty is in the eye of the beholder, but this code, along with much of the Haskell code I’ve ever read, looks horrendous. Why overuse non-alpha characters? Nested parens take mental time to unwrap, and backslashes have a lot of meaning outside of a language.
- anentropic 7y agoI'd much rather have nested parens than "all the parens taken away" and having to remember and then mentally calculate the precedence order for a bunch of obscure operators, which is what I tend to see in a lot of Haskell code. No doubt it becomes natural after persevering for a while....