News for hackers. Stuff that matters.
Re:Rust traits are a local maxima by atq2119 on Friday November 22, 2024 @08:26AM (#42213659)
How about explicitly declaring orphan trait implementations as public (or not) and explicitly importing them (or not). Trait implementations are resolved at the point where a concrete type becomes generic, and the set of available traits can depend on that context.

This isn't exactly trivial, but it avoids coherence problems.

There are no comments on this comment yet.