News for hackers. Stuff that matters.
Re:Dynamic type systems are not inherently more open by aliceryhl on Sunday January 19, 2020 @02:30PM (#22093408)
It sounds like you think adding a conversion at the start is difficult and cumbersome, but it isn't if you use a good serialization library. E.g. with the Rust library serde, you just define the shape you expect your JSON data to have and plop a #[derive(Deserialize)] on it. Boom, fully failsafe JSON deserialization into the type.

There are no comments on this comment yet.