News for hackers. Stuff that matters.
Re:Zig self hosted compiler is now capable of building itself by coder543 on Saturday April 16, 2022 @07:08PM (#31056903)
> I’m probably trying to hard to come up with a situation but I have a gut feeling that freeing mid scope is important under certain circumstances to keep the code simple and understandable.

I explained in my previous comment that you can explicitly "drop" any value at any time in Rust, if you choose.[0] But if you don't, it will still be dropped at the end of the scope. The developer has control, but the language will watch your back.

[0]: https://doc.rust-lang.org/std/mem/fn.drop.html

There are no comments on this comment yet.