logoalt Hacker News

TonyStrtoday at 11:26 AM1 replyview on HN

I am not familiar with scene graphs, but what is the problem with borrowing or refcounting? This article showed how you can have multiple mutable references in Rust, even multiple mutable references running in parallel threads.


Replies

smallstepformantoday at 1:17 PM

Ref counting is for ownership, it doesnt convey intent. It kind of accidently works but is the wrong abstraction, especially in code bases where ownership is known.

show 1 reply