News for hackers. Stuff that matters.
Re:Several core problems with Rust by vacuity on Wednesday November 26, 2025 @08:50AM (#46057382)
As I said here[0], although I can't speak for what @Dylan16807 intends, invariants required by unsafe code are required exactly to the extent that some code can alter the invariants (the module boundary). In this sense, Rust's unsafe is just a particular example of encapsulation, where all notions of invariants in programming have the same essence.

[0] https://news.ycombinator.com/item?id=46030407

There are no comments on this comment yet.