Re:I’m porting the TypeScript type checker tsc to Go
by bobbylarrybobby on Tuesday January 25, 2022 @06:00PM
(#30079344)
In the case of RefCell, when you begin modifying its data, you’re not allowed to begin modifying its data a second time without declaring “I’m done” with the first modification. This makes doing several modifications in different places that are interspersed with each other tricky because it’s hard to reason about when each spot is actually done so that a modification can be performed elsewhere. (If your program is single threaded it’s possible you don’t even care about mutation happening in multiple places, but Rust cares because in general Rust programs need not be single threaded.)
[ Parent
| on HN ]
Re:I’m porting the TypeScript type checker tsc to Go
by throw10920 on Thursday January 27, 2022 @09:52AM
(#30101254)
Rust doesn't allow you to relax mutation constraints for a single-threaded program?