News for hackers. Stuff that matters.
Re:A comparison of Rust's borrow checker to the one in C# by jayd16 on Thursday October 31, 2024 @11:33AM (#42007916)
If you know what types you're using, you do know. If you don't know what you're calling, that's a pretty high bar that I'm not sure C++ clears.
Re:A comparison of Rust's borrow checker to the one in C# by alkonaut on Thursday October 31, 2024 @04:20PM (#42011082)
If you are calling SomeType.SomeMethod(a, b, c) then you don't know what combintions of a, b, c could allocate unless you can peek into it or try every combination of a, b and c. So it's hard to know in the general case even with profiling and testing.