2 ms·
Proper spacing makes code readable. Forcing it is a good thing.
by xdennis 6y ago
Proper spacing makes code readable. Forcing it is a good thing.
- guipsp 6y agoIt's a good thing, until you ask a non-technical user to edit the config file. Then they become confused because a tab is visually, but not functionally equivalent to a number of spaces.
- erinnh 6y agoI wouldnt ask a non-technical person to write any of these config files. If I want non-technical people to configure something I need to write a GUI for self-serving.
- sofixa 6y agoIndeed, it does, when done via something like go fmt. But in the case of YAML, a pedantic level of "proper spacing" is used for logic. 2 or 3 spaces shouldn't change the meaning and order of things