News for hackers. Stuff that matters.
Re:A JVM in Rust part 5 – Executing instructions by kevincox on Tuesday August 29, 2023 @04:35PM (#37313617)
For things like classes that aren't going to be created and destroyed quickly it likely is best to just use a Rc. Then you know it will be available and don't need to bother with lifetimes.

Of course there is a good chance that you will eventually want a VM-scoped lifetime for something else so maybe it is best to just start now.

There are no comments on this comment yet.