2 ms·
I don't fully grok all of the details in the post, but yes, Rust does not have specialization. However, given the way traits work, I don't think it would be nee
by steveklabnik 8y ago
I don't fully grok all of the details in the post, but yes, Rust does not have specialization. However, given the way traits work, I don't think it would be needed in Rust. Serde is the most popular serialization/deserialization framework. You get a Serialize trait, that you implement for a given type. It already calls that specific implementation for that type.
Buuuut I'm probably missing something.
- stochastic_monk 8y agoHe specifically asked about partial specialization, which is akin to currying for templates.
- steveklabnik 8y agoYeah, this is what I mean by that I don't 100% understand all the nuances. I mean, I understand what that feature does, but given that Rust's system works quite differently, I'm not 100% sure what an exact translation would be.
- deleted 8y ago[deleted]