News for hackers. Stuff that matters.
Re:Rust vs C Pitfalls by burntsushi on Wednesday December 28, 2016 @09:48AM (#13270762)
Because an atomic provides interior mutability for `usize`.

(It's a hack that plays on the GP's specific example of a counter. It doesn't generalize arbitrarily to removing use of RefCell for thread locals in safe code.)

There are no comments on this comment yet.