Many program need GC,they wrote a lot of GC in Rust.
Could you be more specific? As far as I know you can already write a GC in Rust, and there's work being done to improve Rust's FFI story with languages that have their own GC, and those are the only two interpretations of "programs need GC" I can think of which seem relevant to a systems language like Rust.
@zaoqi-unsafe probably wants it in stdlib
I think he means adding GC support to Rust if needed but honestly I'm just making a best guess. @zaoqi-unsafe your description is really lacking. Do you mind expanding on it? What do you mean by this?
Possibly a duplicate of https://github.com/rust-lang/rfcs/issues/2220, and a sock puppet.
Make it a Rust User Forum topic instead of an issue, if no request specific enough was made.
如果楼主只有只言片语的“想法”,而没有足够具体的“方案”和“诉求”,那么应当到 Rust 用户论坛 上发帖讨论,而非提出 issue 。
The crate ecosystem already has that covered:
@zaoqi-unsafe There are a number of existing GC implementations written in rust, and there are also crates like GC which provide library-based garbage collection for Rust programs. To read more about this library, you can check out @Manishearth's excellent blog post.
With all that in mind, I'm going to close this issue as resolved. Feel free to respond here or ping me on IRC if you have any questions. If you have a specific GC-related feature you'd like to see added to Rust, feel free to open another issue.
Most helpful comment
Could you be more specific? As far as I know you can already write a GC in Rust, and there's work being done to improve Rust's FFI story with languages that have their own GC, and those are the only two interpretations of "programs need GC" I can think of which seem relevant to a systems language like Rust.