2 ms·
It's painful for the compiler to assume non-local variables may always be shared if the language does not reify the concept of "sharedness" like Rust does. Give
by Sharlin 10y ago
It's painful for the compiler to assume non-local variables may always be shared if the language does not reify the concept of "sharedness" like Rust does. Given that in any reasonable program the vast majority of state is non-shared, it really is somewhat unreasonable for the compiler to always assume the worst without the programmer even being able to override it.