I kinda feel like complaints that using indexing over refs is "bypassing the borrow checker" miss the point. That's like complaining allocation "bypasses the stack".
-
-
ECS *isn't* painful, cyclic graph structures are, ECS is a not-painful-in-rust *solution* to that.
-
yes, this is a more clear version of what I'm trying to say.
-
It's worth mentioning: this specific complaint did not come from a rust programmer (it was very clear they didn't use rust), though I've seen forms of it before that did. You're right that we should attempt to XY-problem the underlying complaint. There isn't one here.
-
That said, "cyclic graphs are hard in rust" is def a valid complaint. And there are multiple abstractions or patterns out there that help with this, based on use case. ECS is one, but petgraph/Weak/etc also exist in this space
End of conversation
New conversation -
-
-
And it is our job to see through all that, and at least acknowledge it, and maybe fix it if we know how.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.