2 ms·
I would have thought that a change in expressiveness leads to less maintainability, not more. Could you elaborate on that point?
by domano 6y ago
I would have thought that a change in expressiveness leads to less maintainability, not more. Could you elaborate on that point?
- lallysingh 6y agoNo, the more expressive the language, the more directly you can have the code model the intent within the domain. As the reader sees the intent and function of the code clearly, they can understand and reason about it better. As an example, Either-monadic code automates an error check on every line, immediately returning on the first error. The go equivalent is a ton of mind-numbing "if err != nil" checks between every relevant line of code. The go equivalent is mostly mechanical clutter. But all those LOC still add maintenance. People have to read and check them (no wrong operators, no references to the wrong variables, etc).