4 ms·
That shouldn't blow up my program. If it doesn't deserialize to my type I handle that as a normal branch in my code.
by yawaramin 8y ago
That 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.