2 ms·
> To get the same effect in a dynamic language, one would need to load this dictionary out of Redis and write a bunch of boilerplate to validate that the return
by michaelmior 10y ago
> To get the same effect in a dynamic language, one would need to load this dictionary out of Redis and write a bunch of boilerplate to validate that the returned fields are correct.
How is this not what serde does internally? I could certainly imagine a nice library for a dynamic language that has a roughly equivalent API.
- steveklabnik 10y agoIt is what serde does internally, and I also imagine that you could make something similar in a dynamic language; https://github.com/rails-api/active_model_serializers https://github.com/rails-api/active_model_serializers comes to mind ;)
- jwilm 10y agoIt's essentially what serde is doing internally. As an author, you don't have to do any of the work, though. I struggle to imagine how a dynamic language could provide equivalent functionality without the call side becoming more complex.
- michaelmior 10y agoSee the sibling comment for an example. I really don't see the challenge here.