News for hackers. Stuff that matters.
Re:How to speed up the Rust compiler in 2018 by olavk on Monday April 30, 2018 @06:26AM (#16957344)
This is true - for example, C# has the `using` block to ensure resources are deterministically released when they go out of scope, not when they at some point later are garbage collected. I would still argue C# is much simpler than Rust since for most object you don't have to worry about this. But I guess there is a certain extra complexity in C# because you actually have to know if a class owns some external resource or not, while this distinction is not necessary in Rust.
Re:How to speed up the Rust compiler in 2018 by moomin on Monday April 30, 2018 @08:15AM (#16957881)
In practice that's rarely an issue, because a) if it has a resource it'll implement IDisposable and b) my IDE screams when I don't dispose an IDisposable.

This is not as good as the Rust model, but it's not awful, either.

Re:How to speed up the Rust compiler in 2018 by olavk on Monday April 30, 2018 @08:30AM (#16957990)
Yes but that is just the compiler offloading some of the static analysis to the IDE. The difference might not matter if you are always in an IDE anyway, but the language would be safer if this was an actual compiler error.