3 ms·
Why can't IDEs just hide all the brackets and replace them with sane whitespace structure?
by andrewstuart 13y ago
Why can't IDEs just hide all the brackets and replace them with sane whitespace structure?
- marvy 13y agoIf your only goal is to read the code, then they could probably do it, after working out a few minor issues. The question is, how do you enter new code? With braces, which vanish as you type, or with whitespace, which means the braces exist only on disk? And if you mess up, how do you cope with the compiler errors?
- singlecomment 13y agoWhy add extra layers?
- corysama 13y agoI use this as a compromise to keep myself from writing code in a format that would anger my coworkers. https://github.com/lukesdm/little-braces https://github.com/lukesdm/little-braces