Hacker News

How to Bypass Rust's Orphan Rule

17 points by todsacerdoti ago | 3 comments

reallyreason |next [-]

Isn’t this essentially a form of, or encoding of, named impls?

foolgry |next |previous [-]

[flagged]

hyperman1 |next |previous [-]

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.

juped |previous [-]

This is an absurd. horrifying hack. I hope library authors start putting it in their traits immediately.