3 ms·
Of course they do. For example C#, D, Nim etc all use stack allocation with their GC. Not to mention Rust also allocates dynamic objects on the heap. So not su
by nromiun 1y ago
Of course they do. For example C#, D, Nim etc all use stack allocation with their GC.
Not to mention Rust also allocates dynamic objects on the heap. So not sure what is your point.
- tcfhgj 1y agoThe language may allow it, but it's not GC managed then. My point is runtime overhead. In C# structs and their refs (including a simple borrow checker to detect invalid ref use) were introduced to escape GC management und reduce it's runtime impact on the programs