News for hackers. Stuff that matters.
Re:Rust's Huge Compilation Units by saiojd on Tuesday June 23, 2020 @08:54PM (#23622596)
I agree. Something must absolutely be done about the orphan rules, IMO they are Rust's biggest wart. They damage composition in a fundamental way, and gimp the otherwise extremely expressive trait system.

I find it hard to believe that there exists no set of import declarations which remove all ambiguity, i.e., allowing orphan traits but requiring that they get imported explicitly.

Re:Rust's Huge Compilation Units by _nalply on Wednesday June 24, 2020 @07:53AM (#23626812)
I think this is a fundamentally difficult problem. Life is sometimes not nice and you have to choose. I chose to write newtype wrappers and to accept the complexity.

> I find it hard to believe [...]

I think you should read up stuff about the orphan rule, then you will understand better.

Re:Rust's Huge Compilation Units by saiojd on Friday June 26, 2020 @05:22PM (#23657198)
Yes it does seem to be a very difficult problem. That being said, some hard problems deserve hard solutions!