News for hackers. Stuff that matters.
Re:Bevy 0.7: data oriented game engine built in Rust by ______-_-______ on Friday April 15, 2022 @03:17PM (#31044522)
I hope the tide does turn and then keeps going. I think the language restrictions around Deref(Mut) and Index(Mut) originally borne of purism are just not all that helpful in practice. I can make a network request in my Deref impl, but I can't return a smart pointer?
Re:Bevy 0.7: data oriented game engine built in Rust by Kinrany on Friday April 15, 2022 @03:54PM (#31044995)
The danger with DerefMut is that one may accidentally allow violating the type's invariant. Same with Deref when interior mutability is present.