3 ms·
>1. Escaping parenthesis hell: sometimes you can escape an unreasonable amount of parenthesis nesting by using (some) point-free programming. Why would I want
by coldtea 10y ago
>1. Escaping parenthesis hell: sometimes you can escape an unreasonable amount of parenthesis nesting by using (some) point-free programming.
Why would I want to? Parenthesis make precedence explicit.
- eru 10y agoParens can be harder to parse for humans than operators. That's the whole point that justifies not going for S-Expression syntax for every programming language in the first place.
- michaelmrose 10y agoIndentation can help but personally I like my editor to color matching parens the same color making it easier to visualize structure.
- eru 10y agoOh, I definitely have a soft-spot for s-expression syntax---especially with good editor support for colours and indentation and syntax-aware editing. It actually took my quite a while to warm-up to Haskell's richer and more complicated syntax.