4 ms·
Is it really that often? More than 10% of lines of code containing nested arithmetic expressions? Sorry, I find it hard to believe.
by sklogic 11y ago
Is it really that often? More than 10% of lines of code containing nested arithmetic expressions? Sorry, I find it hard to believe.
- MereInterest 11y agoIf 10% is your threshold of "often", then no. Arithmetic expressions do show up often enough in code that I work on that they should be immediately readable.
- sklogic 11y agoNobody is stopping you from keeping them as readable as you like. The question here is in readability of the remaining 90% of the code, and this is exactly where nested expressions are evil and must be flattened.