2 ms·
>There are plenty of single-threaded programs where I want to be able to occasionally read a piece of information through an immutable reference, but that infor
by bogdanoff_2 1y ago
>There are plenty of single-threaded programs where I want to be able to occasionally read a piece of information through an immutable reference, but that information can be modified by a different piece of code.
You could do that using Cell or RefCell. I agree that it makes it more cumbersome.