2 ms·
Personally I think reflection is the devil and the reason why we can’t abandon VMs for native compilers.
by vips7L 5y ago
Personally I think reflection is the devil and the reason why we can’t abandon VMs for native compilers.
- pipeline_peak 5y agoReflection does away the need to manually implement serializers. In a growing codebase where data models transform and references to those models begin to rot, that is incredibly useful.
- vips7L 5y agoThat can be done with code generation at compile time. We don’t need to reflect at runtime for that.
- Const-me 5y agoUsability 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.