News for hackers. Stuff that matters.
Re:Why I’m dropping Rust by hinkley on Sunday September 11, 2016 @05:23PM (#12475814)
Meh. Using Weak Types for this would be circumventing the ownership system to say what you mean and maintain it by hand. Indeed I believe the Rust Language is essentially stating that you can't manage these things by hand but a computer can.

The road to hell is paved with good intentions, and I know myself and my cohort well enough that I appreciate the Rust sentiment on this subject. It was the main feature that drew my attention.

I'm wondering if this is a concrete concept that could be build into the ownership system. Logically speaking, this back pointer only exists to allow objects that are part of a Composition to reason about their environment, or be reasoned upon by an outside observer.

Maybe some of this information already exists in the language internals and you just need a function that can expose the owner of record of the object... There can only be one, right?

Re:Why I’m dropping Rust by jwatte on Sunday September 11, 2016 @07:34PM (#12476257)
Each component could have it's environment passed in when called, rather than needing a back pointer. This also simplifies unit testing!