2 ms·
I agree that having a standard cause chain is important. +1 for Rust. But I don't think abstracting over case analysis is a good idea when it hurts readability
by skybrian 12y ago
I agree that having a standard cause chain is important. +1 for Rust.
But I don't think abstracting over case analysis is a good idea when it hurts readability. The combinator stuff looks like it's adding layers of shortcut notations that obscure the control flow.
- burntsushi 12y agoIf you continue to read the OP, you'll get to the `try!` macro, which is a completely different beast. ;-) (It also abstracts over case analysis, among other things, but it's only one very simple form of case analysis, so the mental overhead is low. Combinators on the other hand abstract over many different types of case analysis, so the mental burden can be high, especially if you aren't already comfortable using them.)