Hacker News new | ask | show | jobs
by vips7L 1669 days ago
That can be done with code generation at compile time. We don’t need to reflect at runtime for that.
1 comments

Usability is worse, IMO.

Serialization libraries need to be decoupled from the records being serialized. These two things are compiled into different assemblies, and often written by different people.

Still possible to replace with compile time codegen, but the implementation gonna be complicated and fragile.