News for hackers. Stuff that matters.
Re:The Serde Rust Framework by andrewaylett on Friday October 15, 2021 @05:49AM (#28876007)
I'd always recommend folk use constructor-based deserialisation, rather than getting the deserialiser to create empty objects and poke at fields.

That's still (at least naively) using reflection, but it's a lot safer.

In practice, using reflection for every object being deserialised is far too slow and Jackson at least generates code at runtime rather than repeatedly reflecting. That's magic, but it's nice magic because it's not breaking the language: one can see that it's possible to implement it in pure Java.

There are no comments on this comment yet.