|
|
|
|
|
by stickfigure
2560 days ago
|
|
"Types are useless because they don't version my wire protocol!" is a wholly specious argument. There are a variety of RPC protocols that address versioning in a variety of ways; this isn't a typechecker responsibility. You can generate Typescript interfaces from protobufs if you fancy. Typescript makes sure that all your code agrees with the protocol definition you have chosen. That alone is immensely valuable. |
|
JSON is better because it allows external services to interpret the data in their own way regardless of their type system.