4 ms·
Rust doesn't have linear types? You'll have to elaborate on that because Jim Blandy at least would say you are wrong.
by lewisinc 8y ago
Rust doesn't have linear types? You'll have to elaborate on that because Jim Blandy at least would say you are wrong.
- garmaine 8y agoRust has affine types, not linear types.
- Munksgaard 8y agoTo clarify, with affine types you can guarantee that a value is used at most once, while linear types enforce that a value is used exactly once. Rust has the must-use directive that can be used to approximate linear types but it has severe limitations.