▲ | withoutboats3 3 days ago | |||||||
Your conclusion is correct. I'm very happy with the two that Rust picked and tired of people pretending that there will be a magical pick three option if we just keep talking about it. | ||||||||
▲ | pornel 2 days ago | parent | next [-] | |||||||
I also think Rust has picked the right default, but I wouldn't mind having an opt in to the other pair of trade-offs. There are traits like `ToSql` that would be mostly harmless. Serde has tricks for customizing `Serialize` on foreign types, and this could be smoother with language support. Not every trait is equivalent to Hash. | ||||||||
▲ | Ygg2 3 days ago | parent | prev [-] | |||||||
The problem is people want to write glue code that adds foreign traits to types they don't own. For example they need to implement diesel trait on a type from crate they don't own (e.g. matrix) Is it possible to square that circle? Perhaps not through traits, but something else? | ||||||||
|