3 ms·
I like the idea of an IDE distinguishing between scope types with colors, lines, or rectangles. Just this week I had to scroll up a few pages of C++ to check ho
by vortico 6y ago
I like the idea of an IDE distinguishing between scope types with colors, lines, or rectangles. Just this week I had to scroll up a few pages of C++ to check how deep a line is in scope. It would have been useful to see that the scope was: namespace, class, method, lambda block, for block, if block, if block.
- josefx 6y agoThat sounds like the code needs some refactoring. If only to clearly encapsulate individual steps.
- vortico 6y agoSure, you can do that if you want!
- mikewarot 6y agoIf this was done well, it could greatly increase both the readability and density of code, as viewed on screen. I believe cognitive impedance mismatch major component of the hardness of programming as an activity.
- cyberbanjo 6y agoEmacs has rainbow-delimiters and rainbow-blocks (and show-paren). https://github.com/istib/rainbow-blocks https://github.com/istib/rainbow-blocks