While I think rust is one of the best languages today, this is a corner where it reminds me of C++: Here is a rule with lots of tiny special cases, it has painful consequences in the real world, and if everyone adds some 'best practice' magic to their code, we have 90% of a solution.
Isn’t this essentially a form of, or encoding of, named impls?
[flagged]
While I think rust is one of the best languages today, this is a corner where it reminds me of C++: Here is a rule with lots of tiny special cases, it has painful consequences in the real world, and if everyone adds some 'best practice' magic to their code, we have 90% of a solution.
This is an absurd. horrifying hack. I hope library authors start putting it in their traits immediately.