3 ms·
Because it's just bytes, which may or may not deserialise to the type you expected.
by doubleunplussed 8y ago
Because it's just bytes, which may or may not deserialise to the type you expected.
- yawaramin 8y agoThat shouldn't blow up my program. If it doesn't deserialize to my type I handle that as a normal branch in my code.
- doubleunplussed 8y agoSure, but now you're enforcing types manually instead of with a type system. What have you gained over not having a type system? In this case, nothing.
- yawaramin 8y agoIt's still enforced by the type system. The type-safe deserialization libraries nowadays use 'result' types to indicate success or failure. The compiler forces you to handle both.