Comments don't belong in message exchange formats. JSON is not suitable and not was meant for configs. They do different things and if you use it incorrectly, it's your fault.
Oh yeah of course, skill issue, when literally Microsoft, the multibillion dollar software company, uses JSON for VSCode config files essentially forcing the overwhelming majority of developers to do so. I guess every dev on earth should have had the knowledge to make a better informed decision about data formats than fucking Microsoft, and then also use Vim and thoroughly vet all software they use to make sure none of them made the same mistake that the VSC devs did; and have a zero tolerance policy on all software that dares use json for configs because it is just THAT important to us to use comments.
No. There is no real reason for json not to be a perfectly valid format for config files other than the lack of comments. This is not a skill issue on the part of the user, this is a skill issue on the people who designed the language.
Oh I was not aware of that! Anyways the point remains, the only reason why JSON would be bad for configs is the lack of comments; something that Microsoft seems to have fixed
View all comments
Show parent comment
22
u/nderscore_ 8d ago
Comments don't belong in message exchange formats. JSON is not suitable and not was meant for configs. They do different things and if you use it incorrectly, it's your fault.