2 ms·
All you are proposing really is that code be stored in a common format that editors can parse and display. Tabs and spacing literally are already exactly that -
by nartz 7y ago
All you are proposing really is that code be stored in a common format that editors can parse and display. Tabs and spacing literally are already exactly that - a common format that text editors can properly display.
Otherwise, it would require text editors to have knowledge of how to parse a specific language or serialization, which requires a lot of extra that most wouldn't support.
- keeyan 7y agoMost text editors have this understanding anyway. That's how they autoindent code or colour keywords and variables. Yeah I guess I'm just proposing a different common format but in the end I believe it to be slightly better since it solves a few problems. No, I don't think this will ever happen and it would cause a lot of pain to transition to it. But I just think it's an interesting idea which could have worked had it been done like this from the beginning.
- gregjor 7y agoWhat beginning? Back in the 1950s? Use Go. It forces a consistent format. Not sure what problem you propose solving.