|
|
|
|
|
by joshuamorton
2365 days ago
|
|
You can't statically typecheck deserialized data. You must validate that deserislized value matches the schema, and you can only do so at runtime. In other words, proto has a typed interface, but you must runtime check that a given bag of bytes conforms to that typed interface. This is true for any io. |
|
I assume you mean serialised data, not deserialized. And yes, deserializing includes type checking. The point is that this happens once and the need for a separate API for dynamic data shouldn't be needed.