3 ms·
Linear types are different from immutable types. You can change the value of a linear type as long as you used the previous value somewhere else (for example i
by kbr 9y ago
Linear types are different from immutable types. You can change the value of a linear type as long as you used the previous value somewhere else (for example i = i + 1). Languages like Rust leverage affine types (another substructural type system similar to linear type systems) in order to guarantee memory safety.