3 ms·
Implement your own RPC system with JSON in a statically typed language and you will see what I mean.
by hamandcheese 1y ago
Implement your own RPC system with JSON in a statically typed language and you will see what I mean.
- nasretdinov 1y agoMany JSON parsers allow to store extra fields in a separate dictionary/map, and certainly the format allows for it too, so I'm not sure what makes you say that statically typed languages are at a disadvantage here
- hamandcheese 1y agoPlease refer to my original comment: > You can of course solve the same thing with JSON, but, well, YOU have to solve it. There is not a single well established convention across all languages/impls. The default behavior in many languages if a field is missing is to either panic, or replace it with a null pointer (which will just panic later, most likely).