News for hackers. Stuff that matters.
Re:Why Not Rust? (2020) by zozbot234 on Sunday December 19, 2021 @12:45AM (#29611691)
Meh, bare pointer arithmetic (and shared mutability, for that matter) can be quite morally OK if it's properly isolated to a self-contained module, with detailed specifications on its behavior. That's why Rust has an `unsafe` facility. It's morally wrong to use it across modules (because it's obviously non-compositional), but that's not what Rust devs are doing. This is not C/C++.
Re:Why Not Rust? (2020) by kaba0 on Monday December 20, 2021 @05:58AM (#29623407)
And good OOP is exactly about encapsulating that mutable part.