[Solved] GC in rust for scheme interpreter

Well, if you don't really mind the small drawback in performance, then you could probably change it to be a GC over a Box<dyn Trace> so that it would allow for any type. This would also be similar to how Java and C# (That I know of, I don't know about other languages) automatically box their System.Object deriving classes up.

2 Likes