3 ms·
What you call "expressive duplication" I call "explicit intent". The error control flow is not subordinate to the happy path.
by preseinger 5y ago
What you call "expressive duplication" I call "explicit intent". The error control flow is not subordinate to the happy path.
- wpietri 5y agoI'm not following. I can be explicit without being duplicative. The more I repeat an expression of a single concept, the harder I make refactoring when I discover the concept needs to change. That's why, e.g., copy-paste programming is such a bad idea for most projects.
- preseinger 5y agoI'm not sure how this would apply. You'll never refactor away the error handling idioms of the language itself.
- wpietri 5y agoExactly. If the error-handling idioms of the language force me to be duplicative in ways that make useful work harder, then it sounds like it's not the right language for the project in question.