by tomtomtom777 · 4y ago · 0 comments
This means that they need to use samatman-JSON and cannot really on JSON libraries for parsing. Or worse, if these tools become popular, we will see "samatman-rules" flags arising in JSON parsing libraries thereby harming the simplicity that made JSON what it is to today.
I think that your example illustrates exactly what makes Postel's law harmful. If you accept JSON, stick to the rules.
Every competitor aiming for compatibility with exactly the set of garbage JSON you will accept, no more and no less will have to adhere to those specific rules. That's... not an especially worthwhile goal for a competitor.
[Edit: Now, if you output something weird, others might have to be compatible. But this was talking about outputting strictly standard JSON.]
But it is. Because otherwise we're just embracing monopolies. We can't switch to X because it doesn't accept our input as well as the "main" implementation does.
You can only beat BIND, or Postfix or Excel if you at least understand what they understand.
If they want to build a drop in replacement for your tool sure they need to understand your grammar. Or assuming open source, include your tool as a dependency and run it through that first.