3 ms·
Funnily, I see at being closer to Scala than either C++ or Java. I think it all comes down to background. The official tutorial isn't very good on issues of me
by noelwelsh 13y ago
Funnily, I see at being closer to Scala than either C++ or Java. I think it all comes down to background.
The official tutorial isn't very good on issues of memory management. The first mention of managed references (I assume that means GCed) is in an example in section 11. Nowhere does it actually explain what managed means (and if I missed it, I blame the tutorial for not making it explicit enough!)
- steveklabnik 13y agoYeah, so the syntax for managed references was removed, yet some of it lingers in the docs. I'll make a note to clean that up. The official tutorial is really bad but at least has a large bulk of information. I'd love to re-write it, but I haven't had the time. (And it was more reference counted than actually garbage collected: now we have Rc<T> and Gc<T> for both strategies.)
- dbaupp 13y ago(GC<T> still uses @ internally; i.e. it's reference counting and not garbage collection too. This will be fixed.)
- bjz_ 13y agoWell that's the thing, while Rust occupies the same space as C++, but it doesn't just take its inspirations from there. It also takes it from functional languages like ML or Haskell (the compiler was originally written in OCaml).