by pornel · 2y ago · 0 comments
SQL has CREATE TABLE IF NOT EXISTS. Rust could have `impl Trait if not already implemented`.
It seems to me to be a logical impossibility to allow orphan implementations, and allow crate updates, and not have trait implementations changing at the same time. It's a pick-two situation.
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?