Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust’s orphan rule has the property that there is no spooky action at all distance in terms of program semantics. If I write a library, my library behaves the same way regardless of whether the main program imports a different library.

In any case, the OP’s proposed “incoherent” scheme actually is a module system of sorts for conflicting trait impls, and it seems about right for something like serialization.

 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: