3 ms·
> I know that there are equivalents in managed or interpreted languages (like Java's Jackson library), but I haven't managed to find anything quite like it else
by lmm 2y ago
> I know that there are equivalents in managed or interpreted languages (like Java's Jackson library), but I haven't managed to find anything quite like it elsewhere on the Internet for compiled, unmanaged languages.
Like Rust's Frunk? Or like what Zig or D let you do with "compile time reflection"?
- boricj 2y agoIt's definitively different than Frunk, the library is not a general-purpose functional toolkit. One could certainly implement it with Zig's compile-time reflection with ease (don't know much about D). Actually, it's superficially similar to refl-cpp's serialization example [1], but with far less templating magic underneath due to the restricted scope. [1] https://github.com/veselink1/refl-cpp/blob/master/examples/example-serialization.cpp https://github.com/veselink1/refl-cpp/blob/master/examples/e...